summaryrefslogtreecommitdiff
path: root/src/web/server.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-22 04:19:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-22 04:19:53 +0900
commit9820a691c154e7233b8327cedc7faa1f6c4e55e8 (patch)
treed62b2e92a3a1cfae3798cf8e676a2f740dabadb2 /src/web/server.ts
parentMerge remote-tracking branch 'refs/remotes/origin/master' into no-build-requi... (diff)
downloadsharkey-9820a691c154e7233b8327cedc7faa1f6c4e55e8.tar.gz
sharkey-9820a691c154e7233b8327cedc7faa1f6c4e55e8.tar.bz2
sharkey-9820a691c154e7233b8327cedc7faa1f6c4e55e8.zip
well done
Diffstat (limited to 'src/web/server.ts')
-rw-r--r--src/web/server.ts11
1 files changed, 11 insertions, 0 deletions
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
@@ -52,6 +52,17 @@ 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
*/
app.use(subdomain({