summaryrefslogtreecommitdiff
path: root/src/web/server.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-23 05:43:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-23 05:43:00 +0900
commit3f8ebac466ece8e9598432f3f574ec44e420c03b (patch)
tree05114fce9728d6ce1deecc1f2eb8a903a22b0100 /src/web/server.ts
parent:v: (diff)
downloadsharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.gz
sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.bz2
sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.zip
なんかもうめっちゃ変えた
Closes #940
Diffstat (limited to 'src/web/server.ts')
-rw-r--r--src/web/server.ts26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/web/server.ts b/src/web/server.ts
index 166e17b07a..04de4fe5ac 100644
--- a/src/web/server.ts
+++ b/src/web/server.ts
@@ -11,8 +11,6 @@ import * as bodyParser from 'body-parser';
import * as favicon from 'serve-favicon';
import * as compression from 'compression';
-import config from '../conf';
-
/**
* Init app
*/
@@ -50,29 +48,7 @@ app.get(/^\/sw\.(.+?)\.js$/, (req, res) => res.sendFile(`${__dirname}/assets/sw.
/**
* Manifest
*/
-app.get('/manifest.json', (req, res) => {
- const manifest = require((`${__dirname}/assets/manifest.json`));
-
- // Service Worker
- if (config.sw) {
- manifest['gcm_sender_id'] = config.sw.gcm_sender_id;
- }
-
- res.send(manifest);
-});
-
-/**
- * Serve config
- */
-app.get('/config.json', (req, res) => {
- const conf = {
- recaptcha: {
- siteKey: config.recaptcha.siteKey
- }
- };
-
- res.send(conf);
-});
+app.get('/manifest.json', (req, res) => res.sendFile(`${__dirname}/assets/manifest.json`));
/**
* Common API