var Router = Ember.Router.extend({
    location: "history"
});

Router.map(function () {
    this.resource("clients", function () {
        this.route("new");
        this.resource("client", { path: "/:client_id" }, function () {
            this.route("edit");
        });
    });

    this.resource("accounts", function () {
        this.route("new");
        this.resource("account", { path: "/:account_id" }, function () {
            this.route("edit");
        });
    });

    this.resource("invoices", function () {
        this.route("new");
        this.resource("invoice", { path: "/:invoice_id" }, function () {
            this.route("show", { path: "/" });
            this.route("edit");
        });
    });

    this.resource("settings");
});

export default Router;

var Router = Ember.Router.extend();

Router.map(function () {
    this.resource("clients", function () {
        this.route("new");
        this.resource("client", { path: "/:client_id" }, function () {
            this.route("edit");
        });
    });

    this.resource("accounts", function () {
        this.route("new");
        this.resource("account", { path: "/:account_id" }, function () {
            this.route("edit");
        });
    });

    this.resource("invoices", function () {
        this.route("new");
        this.resource("invoice", { path: "/:invoice_id" }, function () {
            this.route("show", { path: "/" });
            this.route("edit");
        });
    });

    this.resource("settings");
});

export default Router;

Revert "experimenting with history location"
Revert "experimenting with history location"

This reverts commit 7494e0f0954f57526f0ef28e17294c211562ed01.
