5 lines
156 B
TypeScript
5 lines
156 B
TypeScript
![]() |
import { NextApiResponse } from 'next'
|
||
|
|
||
|
export const methodNotAllowed = (res: NextApiResponse) =>
|
||
|
res.status(405).json({ message: 'Method Not Allowed' })
|