feat: download announcements via react query
This commit is contained in:
@@ -9,6 +9,7 @@ app.get("/hello", (_, res) => {
|
||||
});
|
||||
|
||||
app.get("/api/announcements", async (_, res) => {
|
||||
// await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
const announcements = await db
|
||||
.selectFrom("announcements")
|
||||
.select(["id", "title", "text", "publication_date", "image"])
|
||||
|
||||
Reference in New Issue
Block a user