change api version to v2
This commit is contained in:
parent
72bda367e0
commit
00fede6e0d
|
@ -68,8 +68,9 @@ const app = express();
|
||||||
|
|
||||||
logger.debug('Registering Routes');
|
logger.debug('Registering Routes');
|
||||||
|
|
||||||
const api_v1 = require('./api/v1')
|
const api_v2 = require('./api/v2')
|
||||||
app.use('/api/v1', api_v1);
|
app.use('/api/v1', api_v2);
|
||||||
|
app.use('/api/v2', api_v2);
|
||||||
|
|
||||||
app.use(function (req,res,next){
|
app.use(function (req,res,next){
|
||||||
return res.status(404).send({message: 'Not Found'});
|
return res.status(404).send({message: 'Not Found'});
|
||||||
|
|
Loading…
Reference in New Issue