Desc:
- Penambahan function
- Perubahan tampilan
This commit is contained in:
2023-10-09 15:50:15 +08:00
parent 6281452441
commit ca66c3d2d8
12 changed files with 172 additions and 96 deletions

View File

@@ -6,6 +6,7 @@ import { sealData, unsealData } from "iron-session";
import { getConfig } from "@/bin/config";
import yaml from "yaml";
import fs from "fs";
import { revalidatePath } from "next/cache";
const config = yaml.parse(fs.readFileSync("config.yaml").toString());
export async function POST(req: Request) {
@@ -47,6 +48,8 @@ export async function POST(req: Request) {
maxAge: 60 * 60 * 24 * 7,
});
revalidatePath("/dev/home")
return NextResponse.json({ status: 200, data });
}