open-consul/ui/javascripts/app/router.js

21 lines
497 B
JavaScript
Raw Normal View History

2014-04-25 17:49:36 +00:00
window.App = Ember.Application.create({
rootElement: "#app",
LOG_TRANSITIONS: true
});
App.Router.map(function() {
this.resource("dc", {path: "/:dc"}, function() {
this.resource("services", { path: "/services" }, function(){
this.route("show", { path: "/:name" });
});
this.resource("nodes", { path: "/nodes" }, function() {
this.route("show", { path: "/:name" });
});
this.resource("kv", { path: "/kv" });
});
this.route("index", { path: "/" });
});