Created
June 7, 2013 20:25
-
-
Save knownasilya/5732152 to your computer and use it in GitHub Desktop.
Basic Router
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
App.Router.map(function () { | |
this.route("index", { path: "/" }); | |
this.resource("map", function () { | |
this.route("search"); | |
this.route("overlay"); | |
this.route("contact"); | |
}); | |
this.resource("surveys", { path: "/survey" }, function () { | |
this.route("show", { path: ":survey_id" }); | |
}); | |
this.resource("gallery", { path: "/gallery" }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment