Updates
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
type Data = {
|
||||
name: string;
|
||||
};
|
||||
export default function handler(req: NextApiRequest, res: NextApiResponse<Data>): void;
|
||||
export {};
|
||||
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = handler;
|
||||
function handler(req, res) {
|
||||
res.status(200).json({ name: "John Doe" });
|
||||
}
|
||||
Reference in New Issue
Block a user