From 00fede6e0d31679a1f1367de6e32514c2fa3de9c Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Mon, 26 Apr 2021 10:40:53 +1200 Subject: [PATCH] change api version to v2 --- api/src/api/{v1.js => v2.js} | 0 api/src/index.js | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) rename api/src/api/{v1.js => v2.js} (100%) diff --git a/api/src/api/v1.js b/api/src/api/v2.js similarity index 100% rename from api/src/api/v1.js rename to api/src/api/v2.js diff --git a/api/src/index.js b/api/src/index.js index 8a3fbb4..ac4d6f7 100644 --- a/api/src/index.js +++ b/api/src/index.js @@ -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'});