Skip to content

Commit

Permalink
修改接口路径
Browse files Browse the repository at this point in the history
  • Loading branch information
lzan13 committed Jun 24, 2019
1 parent 8b2fc8c commit 77293e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app.use(express.static(path.join(__dirname, config.public_dir)));
/**
* 设置 api 路由,因为要前后端分离,所以服务器这边指提供 api 路由
*/
app.use('/', apiRouter);
app.use('/api/v1', apiRouter);

/**
* 错误处理程序,捕捉项目开发中未处理的错误,并进行简单的处理
Expand Down

0 comments on commit 77293e7

Please sign in to comment.