summaryrefslogtreecommitdiff
path: root/src/web/server.ts
diff options
context:
space:
mode:
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({