Migrate to tslint 5.1.0
This commit is contained in:
@@ -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))
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user