api : update announcement
This commit is contained in:
2
api.http
2
api.http
@@ -170,7 +170,7 @@ POST http://localhost:3000/api/announcement/post?path=create-announcement HTTP/1
|
|||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{
|
{
|
||||||
"title": "cobaannouncement",
|
"title": "cobaannouncement1",
|
||||||
"desc": "coba announcement",
|
"desc": "coba announcement",
|
||||||
"idVillage": "121212",
|
"idVillage": "121212",
|
||||||
"createBy": "111",
|
"createBy": "111",
|
||||||
|
|||||||
@@ -2,5 +2,8 @@ import { NextRequest } from "next/server";
|
|||||||
|
|
||||||
export async function getAllAnnouncement(req: NextRequest) {
|
export async function getAllAnnouncement(req: NextRequest) {
|
||||||
try {
|
try {
|
||||||
|
return Response.json({
|
||||||
|
success: true,
|
||||||
|
});
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user