Last active
August 11, 2020 14:37
-
-
Save nataliaconde/e81bc9e38e32293ba7cc591eb6f9099d to your computer and use it in GitHub Desktop.
Identify Routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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