diff options
Diffstat (limited to '')
-rw-r--r-- | main.js | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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}`)); } |