Moving test file to __tests__
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
|
||||
import type { NextApiRequest, NextApiResponse } from 'next';
|
||||
|
||||
export default function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
if (req.method === 'POST') {
|
||||
res.status(200).json({ message: 'API is working!' });
|
||||
} else {
|
||||
res.status(405).json({ message: 'Method not allowed' });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user