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

@@ -170,7 +170,7 @@ POST http://localhost:3000/api/announcement/post?path=create-announcement HTTP/1
Content-Type: application/json
{
"title": "cobaannouncement",
"title": "cobaannouncement1",
"desc": "coba announcement",
"idVillage": "121212",
"createBy": "111",

View File

@@ -2,5 +2,8 @@ import { NextRequest } from "next/server";
export async function getAllAnnouncement(req: NextRequest) {
try {
return Response.json({
success: true,
});
} catch (error) {}
}