Created
March 5, 2021 16:39
-
-
Save chroline/216b5c4e1692b7d49573f61be14cf72f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NextApiRequest, NextApiResponse } from "next"; | |
| export default async (req: NextApiRequest, res: NextApiResponse) => { | |
| const { query } = req.body as { query: string }; | |
| res.send(slug); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment