chore: biome

This commit is contained in:
redglow
2026-06-20 14:45:28 +02:00
parent 2d3c08c96c
commit 4708a6396c
9 changed files with 169 additions and 75 deletions
+8 -8
View File
@@ -5,18 +5,18 @@ import { db } from "./db/database.js";
const app = express();
app.get("/hello", (_, res) => {
res.send("Hello Vite + React + TypeScript!");
res.send("Hello Vite + React + TypeScript!");
});
app.get("/api/announcements", async (_, res) => {
const announcements = await db
.selectFrom("announcements")
.select(["id", "title", "text", "publication_date", "image"])
.orderBy("announcements.publication_date", "desc")
.execute();
res.json(announcements);
const announcements = await db
.selectFrom("announcements")
.select(["id", "title", "text", "publication_date", "image"])
.orderBy("announcements.publication_date", "desc")
.execute();
res.json(announcements);
});
ViteExpress.listen(app, 3000, () =>
console.log("Server is listening on port 3000..."),
console.log("Server is listening on port 3000..."),
);