Skip to content

Instantly share code, notes, and snippets.

@nataliaconde
Last active August 11, 2020 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nataliaconde/e81bc9e38e32293ba7cc591eb6f9099d to your computer and use it in GitHub Desktop.
Save nataliaconde/e81bc9e38e32293ba7cc591eb6f9099d to your computer and use it in GitHub Desktop.
Identify Routes
'use strict';
var controller = require('./controller');
module.exports = function(app) {
   app.route('/about')
       .get(controller.about);
   app.route('/distance/:zipcode1/:zipcode2')
       .get(controller.get_distance);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment