summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2017-04-14 20:45:37 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2017-04-14 20:45:37 +0900
commitb095efaee59572800244b34564692fd999cc4ded (patch)
tree89a2a1401b2af797bb687d0d79cfb5e9e52d987e /src/web
parentFix tslint.json (diff)
downloadsharkey-b095efaee59572800244b34564692fd999cc4ded.tar.gz
sharkey-b095efaee59572800244b34564692fd999cc4ded.tar.bz2
sharkey-b095efaee59572800244b34564692fd999cc4ded.zip
Migrate to tslint 5.1.0
Diffstat (limited to 'src/web')
-rw-r--r--src/web/server.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/web/server.ts b/src/web/server.ts
index cd3560d834..17e455b172 100644
--- a/src/web/server.ts
+++ b/src/web/server.ts
@@ -38,8 +38,8 @@ app.use((req, res, next) => {
* Static assets
*/
app.use(favicon(`${__dirname}/assets/favicon.ico`));
-app.get('/manifest.json', (req, res) => res.sendFile(__dirname + '/assets/manifest.json'));
-app.get('/apple-touch-icon.png', (req, res) => res.sendFile(__dirname + '/assets/apple-touch-icon.png'));
+app.get('/manifest.json', (req, res) => res.sendFile(`${__dirname}/assets/manifest.json`));
+app.get('/apple-touch-icon.png', (req, res) => res.sendFile(`${__dirname}/assets/apple-touch-icon.png`));
app.use('/assets', express.static(`${__dirname}/assets`, {
maxAge: ms('7 days')
}));
@@ -47,7 +47,7 @@ app.use('/assets', express.static(`${__dirname}/assets`, {
/**
* Common API
*/
-app.get(/\/api:url/, require('./service/url-preview'));
+app.get(/\/api:url/, require('./service/url-preview'));
app.post(/\/api:rss/, require('./service/rss-proxy'));
/**
@@ -74,7 +74,7 @@ app.use(subdomain({
*/
app.use(require('./about')); // about docs
app.get('/@/auth/*', serveApp('auth')); // authorize form
-app.get('/@/dev/*', serveApp('dev')); // developer center
-app.get('*', serveApp('client')); // client
+app.get('/@/dev/*', serveApp('dev')); // developer center
+app.get('*', serveApp('client')); // client
module.exports = app;