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,5 @@
import { getCountDivision } from "@/module/division/lib/division/get_count_devision"
export async function GET() {
const countDivision = getCountDivision()
return Response.json({ count: countDivision })
}

View File

@@ -0,0 +1,6 @@
import { getListAnggota } from "@/module/division/lib/division/get_list_anggota";
export async function GET() {
const listAnggota = await getListAnggota()
return Response.json(listAnggota)
}

View File

@@ -0,0 +1,6 @@
import { getListDevision } from "@/module/division/lib/division/get_list_devision"
export async function GET() {
const list_devision = await getListDevision()
return Response.json(list_devision)
}

View File

@@ -0,0 +1,6 @@
import { getListGroup } from "@/module/division/lib/division/get_list_group"
export async function GET() {
const listGroup = await getListGroup()
return Response.json(listGroup)
}

View File

@@ -0,0 +1,4 @@
import { apiDivision } from "@/module/division/api/api_division";
export async function GET(req: Request) {
return apiDivision(req, "GET")
}

View File

@@ -0,0 +1,4 @@
import { apiDivision } from "@/module/division/api/api_division";
export async function POST(req: Request) {
return apiDivision(req, "POST")
}