Files
threshold-ui/ui/desktop/app/router.js
T
Cameron Perera 4b9496b4f2 Icu 10491 create route for session/session-id (#1825)
* fix: 🐛 call displayName on model

* feat: 🎸 add sessions/session-id route and base layout

✅ Closes: ICU-10491
2023-09-22 18:58:13 -04:00

34 lines
939 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import EmberRouter from '@ember/routing/router';
import config from './config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route('scopes', function () {
this.route('scope', { path: ':scope_id' }, function () {
this.route('authenticate', function () {
this.route('method', { path: ':auth_method_id' }, function () {
this.route('oidc');
});
});
this.route('projects', function () {
this.route('targets', function () {
this.route('target', { path: ':target_id' }, function () {});
});
this.route('sessions', function () {
this.route('session', { path: ':session_id' }, function () {});
});
});
});
});
this.route('cluster-url');
});