api : update announcement

This commit is contained in:
lukman
2024-07-29 13:52:46 +08:00
parent f265639355
commit fcbc136d41
4 changed files with 4 additions and 1 deletions

View File

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

View File

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