From 3043f81321ff543c6dee9e05f36e2e60c32f831f Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 29 Dec 2016 13:39:34 +0900 Subject: [PATCH] Add index page --- src/web/about/pages/index.pug | 9 +++++++++ src/web/server.ts | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 src/web/about/pages/index.pug diff --git a/src/web/about/pages/index.pug b/src/web/about/pages/index.pug new file mode 100644 index 000000000..1fcd36468 --- /dev/null +++ b/src/web/about/pages/index.pug @@ -0,0 +1,9 @@ +extend ../base + +block title + | About Misskey + +block content + h1 About Misskey + + p 誰か書いて diff --git a/src/web/server.ts b/src/web/server.ts index d30680f68..8e6f00cf3 100644 --- a/src/web/server.ts +++ b/src/web/server.ts @@ -63,6 +63,13 @@ app.use('/@/about/resources', express.static(`${__dirname}/about/resources`, { maxAge: ms('7 days') })); +app.get('/@/about/', (req, res) => { + res.render(`${__dirname}/about/pages/index`, { + path: 'index', + config: config + }); +}); + app.get('/@/about/:page(*)', (req, res) => { res.render(`${__dirname}/about/pages/${req.params.page}`, { path: req.params.page,