import{NextApiRequest,NextApiResponse}from"next";import{withApiAuthRequired}from"@auth0/nextjs-auth0";importncfrom"next-connect";// Secured api endpoint.// Possible synergy between next-connect and withApiAuthRequired from nextjs-auth0.consthandler=withApiAuthRequired(nc<NextApiRequest,NextApiResponse>().get((req:NextApiRequest,res:NextApiResponse)=>{// ...}).post((req:NextApiRequest,res:NextApiResponse)=>{// ...}));exportdefaulthandler;
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here is my strategy: