silverwolf-x's picture
download
raw
344 Bytes
import type { NextApiRequest, NextApiResponse } from "next";
import type { User } from "../../interfaces";
// Fake users data
const users: User[] = [{ id: 1 }, { id: 2 }, { id: 3 }];
export default function handler(
_req: NextApiRequest,
res: NextApiResponse<User[]>,
) {
// Get data from your database
res.status(200).json(users);
}

Xet Storage Details

Size:
344 Bytes
·
Xet hash:
a40604e8b8a79bcaa5c53bbdc415e3e5cc30987b7e3bad914172a77eb89b2a47

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.