2020-06-23 00:09:42 +05:30
|
|
|
import DashboardPage from '../pages/dashboard_page.vue';
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
import { BASE_DASHBOARD_PAGE, CUSTOM_DASHBOARD_PAGE } from './constants';
|
2020-06-23 00:09:42 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* Because the cluster health page uses the dashboard
|
|
|
|
* app instead the of the dashboard component, hitting
|
|
|
|
* `/` route is not possible. Hence using `*` until the
|
|
|
|
* health page is refactored.
|
|
|
|
* https://gitlab.com/gitlab-org/gitlab/-/issues/221096
|
|
|
|
*/
|
|
|
|
export default [
|
|
|
|
{
|
|
|
|
name: BASE_DASHBOARD_PAGE,
|
2020-07-28 23:09:34 +05:30
|
|
|
path: '/',
|
|
|
|
component: DashboardPage,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: CUSTOM_DASHBOARD_PAGE,
|
|
|
|
path: '/:dashboard(.*)',
|
2020-06-23 00:09:42 +05:30
|
|
|
component: DashboardPage,
|
|
|
|
},
|
|
|
|
];
|