<%#
 Copyright 2013-2024 the original author or authors from the JHipster project.

 This file is part of the JHipster project, see https://www.jhipster.tech/
 for more information.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-%>
import { Routes } from '@angular/router';
/* jhipster-needle-add-admin-module-import - JHipster will add admin modules imports here */

const routes: Routes = [
<%_ if (generateUserManagement && userManagement.skipClient) { _%>
  {
    path: 'user-management',
    loadChildren: () => import('./user-management/user-management.route'),
    title: 'userManagement.home.title',
  },
<%_ } _%>
  {
    path: 'docs',
    loadComponent: () => import('./docs/docs.component'),
    title: 'global.menu.admin.apidocs',
  },
<%_ if (withAdminUi) { _%>
  {
    path: 'configuration',
    loadComponent: () => import('./configuration/configuration.component'),
    title: 'configuration.title',
  },
  {
    path: 'health',
    loadComponent: () => import('./health/health.component'),
    title: 'health.title',
  },
  {
    path: 'logs',
    loadComponent: () => import('./logs/logs.component'),
    title: 'logs.title',
  },
  {
    path: 'metrics',
    loadComponent: () => import('./metrics/metrics.component'),
    title: 'metrics.title',
  },
<%_ } _%>
<%_ if (applicationTypeGateway && gatewayServicesApiAvailable) { _%>
  {
    path: 'gateway',
    loadComponent: () => import('./gateway/gateway.component'),
    title: 'gateway.title',
  },
<%_ } _%>
<%_ if (communicationSpringWebsocket) { _%>
  {
    path: 'tracker',
    loadComponent: () => import('./tracker/tracker.component'),
    title: 'tracker.title',
  },
<%_ } _%>
  /* jhipster-needle-add-admin-route - JHipster will add admin routes here */
];

export default routes;
