Migrate to tslint 5.1.0

This commit is contained in:
Aya Morisawa
2017-04-14 20:45:37 +09:00
parent 798d1610f0
commit b095efaee5
16 changed files with 107 additions and 95 deletions

View File

@@ -34,10 +34,10 @@ app.get('/', (req, res) => {
*/
endpoints.forEach(endpoint =>
endpoint.withFile ?
app.post('/' + endpoint.name,
app.post(`/${endpoint.name}`,
endpoint.withFile ? multer({ dest: 'uploads/' }).single('file') : null,
require('./api-handler').default.bind(null, endpoint)) :
app.post('/' + endpoint.name,
app.post(`/${endpoint.name}`,
require('./api-handler').default.bind(null, endpoint))
);