Skip to content

Instantly share code, notes, and snippets.

@artemis15
Created September 16, 2019 18:46
Show Gist options
  • Save artemis15/83788b83d374ac781459c297551de486 to your computer and use it in GitHub Desktop.
Save artemis15/83788b83d374ac781459c297551de486 to your computer and use it in GitHub Desktop.
handling of versioning of API
const express = require('express');
const v1ApiController = require('./v1');
let mainApiRouter = express.Router();
mainApiRouter.use('/v1',v1ApiController);
module.exports = mainApiRouter;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment