This commit is contained in:
syuilo
2017-12-14 16:24:41 +09:00
parent 0c0dc1ce3f
commit 5166fc92b6
17 changed files with 295 additions and 44 deletions

View File

@@ -63,6 +63,12 @@ app.get('/manifest.json', (req, res) =>
*/
app.get(/\/api:url/, require('./service/url-preview'));
/**
* Docs
*/
app.get(/^\/docs\/([a-z_\-\/]+?)$/, (req, res) =>
res.sendFile(`${__dirname}/docs/${req.params[0]}.html`));
/**
* Routing
*/