tambahan untuk divisi
This commit is contained in:
16
src/module/division/api/api_division.ts
Normal file
16
src/module/division/api/api_division.ts
Normal 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" })
|
||||
}
|
||||
Reference in New Issue
Block a user