summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorJulien Dessaux2023-01-05 02:09:07 +0100
committerJulien Dessaux2023-01-05 02:09:07 +0100
commitd7ed1196bdd44d7734d41d91a5e72a71785e0a08 (patch)
treeaafae6571d5154dc5e9a061c8f54ca8e9b1287ad /main.js
parentAdded more tests (diff)
downloadjeux-de-mots-d7ed1196bdd44d7734d41d91a5e72a71785e0a08.tar.gz
jeux-de-mots-d7ed1196bdd44d7734d41d91a5e72a71785e0a08.tar.bz2
jeux-de-mots-d7ed1196bdd44d7734d41d91a5e72a71785e0a08.zip
switched to single quotes string in eslint
Diffstat (limited to 'main.js')
-rw-r--r--main.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/main.js b/main.js
index 391a4fe..0b04edd 100644
--- a/main.js
+++ b/main.js
@@ -1,21 +1,21 @@
-import express from "express";
+import express from 'express';
-import helmet from "./middlewares/helmet.js";
-import gamesRouter from "./routes/games.js";
-import rootRouter from "./routes/root.js";
+import helmet from './middlewares/helmet.js';
+import gamesRouter from './routes/games.js';
+import rootRouter from './routes/root.js';
const app = express();
-app.set("trust proxy", 1);
+app.set('trust proxy', 1);
app.use(helmet);
-app.set("views", "./views");
-app.set("view engine", "ejs");
+app.set('views', './views');
+app.set('view engine', 'ejs');
-app.use("/games", gamesRouter);
-app.use("/static", express.static("static"));
-app.use("/", rootRouter);
+app.use('/games', gamesRouter);
+app.use('/static', express.static('static'));
+app.use('/', rootRouter);
-if (process.env.NODE_ENV !== "test") {
+if (process.env.NODE_ENV !== 'test') {
const port = process.env.PORT || 3000;
app.listen(port, () => console.log(`listening on port ${port}`));
}