summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-07-24 12:27:25 +0200
committerTor Andersson <tor@ccxvii.net>2022-07-24 13:05:31 +0200
commit007b4d1ce6c868bb2ea631b00839c2a4dce7906e (patch)
treed1aaa7bfa8f875420cae77aadfdc3d08930339fb /server.js
parent3e882f6480dd1c7e3148a1e6caf45d7c7568b75b (diff)
downloadserver-007b4d1ce6c868bb2ea631b00839c2a4dce7906e.tar.gz
Add "create game" index page.
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server.js b/server.js
index e852a61..feb06ca 100644
--- a/server.js
+++ b/server.js
@@ -359,6 +359,10 @@ app.get('/', function (req, res) {
res.render('index.pug', { user: req.user, titles: TITLES })
})
+app.get('/create', must_be_logged_in, function (req, res) {
+ res.render('create-index.pug', { user: req.user, titles: TITLES })
+})
+
app.get('/about', function (req, res) {
res.render('about.pug', { user: req.user })
})