tambahan untuk divisi

This commit is contained in:
bipproduction
2024-07-08 10:32:45 +08:00
parent 27f9140a64
commit 3fe18b77a9
47 changed files with 1094 additions and 20 deletions

View File

@@ -0,0 +1,16 @@
type Method = "GET" | "POST"
const listApi = [
{
"page": ""
}
]
export async function apiDivision(req: Request, method: Method) {
const { searchParams } = new URL(req.url)
const page = searchParams.get("page")
if (!page) return Response.json({ message: "page not found" }, { status: 404 })
return Response.json({ message: "ok" })
}