Skip to content

Commit

Permalink
fix error code 400 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Cicini authored Oct 1, 2022
1 parent c0bd499 commit 6c03ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse<LinkData>) => {
return
}

res.status(200).json({ shortUrl: parsed.result.shorturl })
res.status(200).json({ shortUrl: parsed.root.shorturl })
}
export default handler

0 comments on commit 6c03ecf

Please sign in to comment.