Created
November 8, 2022 07:43
-
-
Save szymonkorytnicki/2cadccc99a842e618a63070a289bffd3 to your computer and use it in GitHub Desktop.
This file contains 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
const handler: NextApiHandler = (request: NextApiRequest, response: NextApiResponse) => { | |
MyModule.log('sending a request'); // yup, no worries | |
axios.get('http://myservice.com'); // fine, why not! | |
return response.status(200).json({ ok: true }); | |
}; | |
export default handler; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment