Skip to content

Commit bf98129

Browse files
committed
Fixed router bug reported in issue logorn#1
1 parent ca62f49 commit bf98129

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ app.use(bodyParser.urlencoded({extended: false}));
2020
app.use(bodyParser.json());
2121

2222
/* Router configuration */
23-
app.use(require('./app/routes/Router'));
23+
const REST_API_ROOT = '/api';
24+
app.use(REST_API_ROOT, require('./app/routes/Router'));

0 commit comments

Comments
 (0)