Use string interpolation
This commit is contained in:
parent
ffb345ccb5
commit
291beb45fc
40 changed files with 53 additions and 53 deletions
|
|
@ -79,7 +79,7 @@ const files = glob.sync('**/*.js', {
|
|||
});
|
||||
|
||||
const endpoints: IEndpoint[] = files.map(f => {
|
||||
const ep = require('./endpoints/' + f);
|
||||
const ep = require(`./endpoints/${f}`);
|
||||
|
||||
return {
|
||||
name: f.replace('.js', ''),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue