Progress
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import db from "../../../lib/db";
|
||||
import { withErrorHandling } from "../../../lib/apiHelpers";
|
||||
|
||||
const handler = withErrorHandling(async (req, res) => {
|
||||
const handler = async (req, res) => {
|
||||
const { method } = req;
|
||||
|
||||
switch (method) {
|
||||
@@ -11,7 +10,7 @@ const handler = withErrorHandling(async (req, res) => {
|
||||
res.setHeader("Allow", ["GET"]);
|
||||
res.status(405).end(`Method ${method} Not Allowed`);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const get = async (req, res) => {
|
||||
const params = {
|
||||
|
||||
Reference in New Issue
Block a user