api discussion

Deskripsi:
- api discussion create, update, delete, get one, get all, add comment
- update struktur database-
- update respon division

NO ISsues
This commit is contained in:
amel
2024-07-31 16:01:06 +08:00
parent a0290badfd
commit bd433bcf56
28 changed files with 219 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
import { apiDiscussion } from "@/module/division_new";
import { NextRequest } from "next/server";
export async function GET(req: NextRequest) {
return apiDiscussion(req, "GET")
}

View File

@@ -0,0 +1,6 @@
import { apiDiscussion } from "@/module/division_new";
import { NextRequest } from "next/server";
export async function POST(req: NextRequest) {
return apiDiscussion(req, "POST")
}