window.ls.router
  .add("/auth/signin", {
    template: "/auth/signin?version=" + APP_ENV.CACHEBUSTER,
    scope: "home"
  })
  .add("/auth/signup", {
    template: "/auth/signup?version=" + APP_ENV.CACHEBUSTER,
    scope: "home"
  })
  .add("/auth/recovery", {
    template: "/auth/recovery?version=" + APP_ENV.CACHEBUSTER,
    scope: "home"
  })
  .add("/auth/recovery/reset", {
    template: "/auth/recovery/reset?version=" + APP_ENV.CACHEBUSTER,
    scope: "home"
  })
  .add("/auth/confirm", {
    template: "/auth/confirm?version=" + APP_ENV.CACHEBUSTER,
    scope: "home"
  })
  .add("/auth/join", {
    template: "/auth/join?version=" + APP_ENV.CACHEBUSTER,
    scope: "home"
  })
  .add("/auth/magic-url", {
    template: "/auth/magic-url?version=" + APP_ENV.CACHEBUSTER,
    scope: "home"
  })
  .add("/auth/oauth2/success", {
    template: "/auth/oauth2/success?version=" + APP_ENV.CACHEBUSTER,
    scope: "home"
  })
  .add("/auth/oauth2/failure", {
    template: "/auth/oauth2/failure?version=" + APP_ENV.CACHEBUSTER,
    scope: "home"
  })
  .add("/console", {
    template: "/console?version=" + APP_ENV.CACHEBUSTER,
    scope: "console"
  })
  .add("/console/account", {
    template: "/console/account?version=" + APP_ENV.CACHEBUSTER,
    scope: "console"
  })
  .add("/console/account/:tab", {
    template: "/console/account?version=" + APP_ENV.CACHEBUSTER,
    scope: "console"
  })
  .add("/console/home", {
    template: "/console/home?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/home/:tab", {
    template: "/console/home?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/platforms/:platform", {
    template: function(window) {
      return window.location.pathname + "?version=" + APP_ENV.CACHEBUSTER;
    },
    scope: "console",
    project: true
  })
  .add("/console/notifications", {
    template: "/console/notifications?version=" + APP_ENV.CACHEBUSTER,
    scope: "console"
  })
  .add("/console/settings", {
    template: "/console/settings?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/settings/:tab", {
    template: "/console/settings?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/webhooks", {
    template: "/console/webhooks?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/webhooks/:tab", {
    template: "/console/webhooks?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/keys", {
    template: "/console/keys?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/keys/:tab", {
    template: "/console/keys?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/tasks", {
    template: "/console/tasks?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/tasks/:tab", {
    template: "/console/tasks?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/database", {
    template: "/console/database?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/database/collection", {
    template: function(window) {
      return window.location.pathname + window.location.search + '&version=' + APP_ENV.CACHEBUSTER;
    },
    scope: "console",
    project: true
  })
  .add("/console/database/collection/:tab", {
    template: function(window) {
      return window.location.pathname + window.location.search + '&version=' + APP_ENV.CACHEBUSTER;
    },
    scope: "console",
    project: true
  })
  .add("/console/database/document", {
    template: function(window) {
      return window.location.pathname + window.location.search + '&version=' + APP_ENV.CACHEBUSTER;
    },
    scope: "console",
    project: true
  })
  .add("/console/database/document/:tab", {
    template: function(window) {
      return window.location.pathname + window.location.search + '&version=' + APP_ENV.CACHEBUSTER;
    },
    scope: "console",
    project: true
  })
  .add("/console/storage", {
    template: "/console/storage?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/storage/:tab", {
    template: "/console/storage?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/users", {
    template: "/console/users?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/users/user", {
    template: "/console/users/user?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/users/user/:tab", {
    template: "/console/users/user?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/users/teams/team", {
    template: "/console/users/teams/team?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/users/teams/team/:tab", {
    template: "/console/users/teams/team?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/users/:tab", {
    template: "/console/users?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/functions", {
    template: "/console/functions?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/functions/function", {
    template: "/console/functions/function?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/functions/function/:tab", {
    template: "/console/functions/function?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
  .add("/console/functions/:tab", {
    template: "/console/functions?version=" + APP_ENV.CACHEBUSTER,
    scope: "console",
    project: true
  })
;
