From 5874e7064fd94a31c3a285d649472fa2cb4ca99b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 23 Jun 2022 03:05:27 +0200 Subject: [PATCH] Add public folder --- public/css/style.css | 0 src/server.js | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 public/css/style.css diff --git a/public/css/style.css b/public/css/style.css new file mode 100644 index 0000000..e69de29 diff --git a/src/server.js b/src/server.js index 2ca8b93..be88451 100644 --- a/src/server.js +++ b/src/server.js @@ -6,6 +6,8 @@ const port = 3000; app.set('views', 'src/views'); app.set('view engine', 'ejs'); +app.use(express.static('./public')); + app.use('/', require('./routes')); app.listen(port, () => {