Use next-basics package.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ok, methodNotAllowed } from 'lib/response';
|
||||
import { ok, methodNotAllowed } from 'next-basics';
|
||||
|
||||
export default async (req, res) => {
|
||||
if (req.method === 'GET') {
|
||||
|
||||
Reference in New Issue
Block a user