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 431ef2d commit 612991f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pages/api/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ type errorType = {
// const text = "data/text.json";


export default function handler(req: NextApiRequest, res: NextApiResponse<dataType | errorType>){
res.status(200).json({
error: "testing"
})
export default async function handler(req: NextApiRequest, res: NextApiResponse<dataType | errorType>){
return res.status(500).json({error: 'Only GET requests!'})

// if(req.method === "POST"){
// const time = req.query?.t;
Expand Down

0 comments on commit 612991f

Please sign in to comment.