From a9e69de5473ae17baf8642d667980d9a84965357 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 12 Apr 2021 14:37:31 +0200 Subject: [PATCH] Register v2 proxy API --- src/proxy/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/proxy/index.js b/src/proxy/index.js index 344c178..481bfca 100644 --- a/src/proxy/index.js +++ b/src/proxy/index.js @@ -22,12 +22,13 @@ app.use(cors()) app.set('port', process.env.PORT || 3000) app.use('/api/1', require('./api/v1/')) +app.use('/api/2', require('./api/v2/')) app.get('/', (req, res) => { return res.status(200).json({ message: 'Available endpoints: /api' }) }) app.get('/api', (req, res) => { - return res.status(200).json({ message: 'Available API versions: /api/1' }) + return res.status(200).json({ message: 'Available API versions: /api/1, /api/2' }) }) app.all('*', (req, res) => { return res.status(404).json({ message: 'API endpoint not found' })