From 9d33b2fe6b3fbea60d981d9f4ed24cf82b05a7af Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 29 May 2025 22:48:16 +0200 Subject: Prettier config --- src/api/start.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/api/start.js') diff --git a/src/api/start.js b/src/api/start.js index ff94dec..6aa4567 100644 --- a/src/api/start.js +++ b/src/api/start.js @@ -1,25 +1,25 @@ -import express from "express"; -import { registerRoutes } from "./routes.js"; -import { useCors, useLogging } from "./middlewares/index.js"; -import { initDb } from "#db/index.js"; +import express from 'express'; +import { registerRoutes } from './routes.js'; +import { useCors, useLogging } from './middlewares/index.js'; +import { initDb } from '#db/index.js'; const app = express(); const PORT = process.env.PORT ?? 3000; -const logRequests = process.env["LOG_REQUESTS"] ?? "-"; +const logRequests = process.env['LOG_REQUESTS'] ?? '-'; await initDb(); // Configure Express app.use(express.json()); app.use(useCors); -app.disable("x-powered-by"); +app.disable('x-powered-by'); if (logRequests) { - app.use(useLogging(logRequests)); + app.use(useLogging(logRequests)); } registerRoutes(app); app.listen(PORT, () => { - console.log(`Server is running on http://localhost:${PORT}`); + console.log(`Server is running on http://localhost:${PORT}`); }); -- cgit 1.5.1