mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
change api version to v2
This commit is contained in:
parent
72bda367e0
commit
00fede6e0d
2 changed files with 3 additions and 2 deletions
|
@ -68,8 +68,9 @@ const app = express();
|
|||
|
||||
logger.debug('Registering Routes');
|
||||
|
||||
const api_v1 = require('./api/v1')
|
||||
app.use('/api/v1', api_v1);
|
||||
const api_v2 = require('./api/v2')
|
||||
app.use('/api/v1', api_v2);
|
||||
app.use('/api/v2', api_v2);
|
||||
|
||||
app.use(function (req,res,next){
|
||||
return res.status(404).send({message: 'Not Found'});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue