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
|
||||
|
||||
{
|
||||
"title": "cobaannouncement",
|
||||
"title": "cobaannouncement1",
|
||||
"desc": "coba announcement",
|
||||
"idVillage": "121212",
|
||||
"createBy": "111",
|
||||
|
||||
@@ -2,5 +2,8 @@ import { NextRequest } from "next/server";
|
||||
|
||||
export async function getAllAnnouncement(req: NextRequest) {
|
||||
try {
|
||||
return Response.json({
|
||||
success: true,
|
||||
});
|
||||
} catch (error) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user