Skip to content

Instantly share code, notes, and snippets.

@jeffrydegrande
Last active December 11, 2015 06:08
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 jeffrydegrande/4556971 to your computer and use it in GitHub Desktop.
Save jeffrydegrande/4556971 to your computer and use it in GitHub Desktop.
class Router
@people_path: -> "/people"
@person_path: (id)-> "/person/#{id}/"
var Router = {
people_path: function() {
return "/people";
},
person_path: function(id) {
return "/person/" + id;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment