consul/ui/javascripts/app/router.js

26 lines
688 B
JavaScript
Raw Normal View History

2014-04-25 17:49:36 +00:00
window.App = Ember.Application.create({
rootElement: "#app",
2014-04-30 18:02:20 +00:00
LOG_TRANSITIONS: true,
baseUrl: 'http://localhost:8500'
2014-04-25 17:49:36 +00:00
});
2014-04-30 18:02:20 +00:00
2014-04-25 17:49:36 +00:00
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" });
});
2014-04-29 17:34:13 +00:00
this.resource("kv", { path: "/kv" }, function(){
2014-04-29 18:49:07 +00:00
this.route("index", { path: "/" });
2014-04-29 17:34:13 +00:00
this.route("show", { path: "/:key" });
this.route("edit", { path: "/:key/edit" });
})
2014-04-25 17:49:36 +00:00
});
this.route("index", { path: "/" });
});