fix
This commit is contained in:
@@ -2,7 +2,7 @@ import type { NextApiRequest, NextApiResponse } from "next";
|
||||
import { store, html } from "@/store";
|
||||
import config from "@/config";
|
||||
|
||||
export default function handler(
|
||||
export default async function handler(
|
||||
req: NextApiRequest,
|
||||
res: NextApiResponse<Record<string, string>>
|
||||
) {
|
||||
@@ -16,5 +16,6 @@ export default function handler(
|
||||
const json = req.body;
|
||||
store.update(json);
|
||||
}
|
||||
await store.save();
|
||||
res.status(200).json(store.get());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user