silverwolf-x's picture
download
raw
588 Bytes
import type { NextApiRequest, NextApiResponse } from "next";
import fetchComment from "../../lib/fetchComment";
import createComments from "../../lib/createComment";
import deleteComments from "../../lib/deleteComment";
export default async function handler(
req: NextApiRequest,
res: NextApiResponse,
) {
switch (req.method) {
case "GET":
return fetchComment(req, res);
case "POST":
return createComments(req, res);
case "DELETE":
return deleteComments(req, res);
default:
return res.status(400).json({ message: "Invalid method." });
}
}

Xet Storage Details

Size:
588 Bytes
·
Xet hash:
30ca6bc50cbde9b06755c5a48c5a75481f6647c32ccad69f8067dbae8aeea373

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