Skip to content

Instantly share code, notes, and snippets.

@knownasilya
Created June 7, 2013 20:25
Show Gist options
  • Save knownasilya/5732152 to your computer and use it in GitHub Desktop.
Save knownasilya/5732152 to your computer and use it in GitHub Desktop.
Basic Router
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