Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
xvpc committed Mar 3, 2024
1 parent 0772f98 commit 477b88d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/api/data/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NextApiRequest, NextApiResponse } from "next";
// import type { NextApiRequest, NextApiResponse } from "next";
// import { readFileSync } from "fs";

type dataType = {
Expand All @@ -25,8 +25,8 @@ type errorType = {
// headers: apiHeaders,
// })
// }

export default async function handler(req: NextApiRequest, res: NextApiResponse){
// req: NextApiRequest, res: NextApiResponse
export default async function handler(request: Request){
return new Response(JSON.stringify({ error: "testing" }), {
status: 401,
})
Expand Down

0 comments on commit 477b88d

Please sign in to comment.