well done

This commit is contained in:
syuilo
2017-02-22 04:19:53 +09:00
parent 7203c176e8
commit 9820a691c1
12 changed files with 58 additions and 8 deletions

View File

@@ -51,6 +51,17 @@ app.get(/\/api:meta/, require('./meta'));
app.get(/\/api:url/, require('./service/url-preview'));
app.post(/\/api:rss/, require('./service/rss-proxy'));
/**
* Serve config
*/
app.get('/config.json', (req, res) => {
res.send({
recaptcha: {
siteKey: config.recaptcha.siteKey
}
});
});
/**
* Subdomain
*/