From 9820a691c154e7233b8327cedc7faa1f6c4e55e8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Feb 2017 04:19:53 +0900 Subject: well done --- src/web/server.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/web/server.ts') diff --git a/src/web/server.ts b/src/web/server.ts index 72f6df5983..70083753b2 100644 --- a/src/web/server.ts +++ b/src/web/server.ts @@ -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 */ -- cgit v1.2.3-freya