Skip to content

Instantly share code, notes, and snippets.

@peterzawistowicz
Created April 17, 2015 18:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save peterzawistowicz/a2075d558582d3fd5d2c to your computer and use it in GitHub Desktop.
var router = express.Router();
router.post('/user/enroll', function(req, res) {
logger.debug('Router for /user/enroll');
}
router.get('/feeds', stormpath.apiAuthenticationRequired, function(req, res) {
logger.debug('Router for /feeds');
}
router.put('/feeds/subscribe',
stormpath.apiAuthenticationRequired, function(req, res) {
logger.debug('Router for /feeds');
}
app.use('/api/v1.0', router);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment