Add new fetch.js route
parent
3c274c995a
commit
0402209290
2
app.js
2
app.js
|
@ -15,6 +15,7 @@ var dataRouter = require('./routes/data');
|
||||||
var manageRouter = require('./routes/manage');
|
var manageRouter = require('./routes/manage');
|
||||||
var authRouter = require('./routes/auth');
|
var authRouter = require('./routes/auth');
|
||||||
var aboutRouter = require('./routes/about');
|
var aboutRouter = require('./routes/about');
|
||||||
|
var fetchRouter = require('./routes/fetch');
|
||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ app.use('/data', dataRouter);
|
||||||
app.use('/manage', manageRouter);
|
app.use('/manage', manageRouter);
|
||||||
app.use('/auth', authRouter);
|
app.use('/auth', authRouter);
|
||||||
app.use('/about', aboutRouter);
|
app.use('/about', aboutRouter);
|
||||||
|
app.use('/fetch', fetchRouter);
|
||||||
|
|
||||||
|
|
||||||
// catch 404 and forward to error handler
|
// catch 404 and forward to error handler
|
||||||
|
|
Reference in New Issue