路由增加 /api
This commit is contained in:
parent
cc4487af1d
commit
8e3a0c1382
@ -148,7 +148,7 @@ app.all('/uploads', function(req, res, next) {
|
||||
res.header('Access-Control-Allow-Headers', 'Content-Type');
|
||||
next();
|
||||
});
|
||||
app.use('/', routes);
|
||||
app.use('/api', routes);
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
const err = new Error('未找到您要访问的页面 (´・_・`)');
|
||||
|
Loading…
x
Reference in New Issue
Block a user