1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-24 07:06:31 +09:00

Add index page

This commit is contained in:
syuilo 2016-12-29 13:39:34 +09:00
parent 9f985d4b72
commit 3043f81321
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,9 @@
extend ../base
block title
| About Misskey
block content
h1 About Misskey
p 誰か書いて

View File

@ -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,