Initial Commit
This commit is contained in:
77
otis/src/app/app-routing.module.ts
Normal file
77
otis/src/app/app-routing.module.ts
Normal file
@ -0,0 +1,77 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { LoginComponent } from './auth/login/login.component';
|
||||
import { LogoutComponent } from './auth/logout/logout.component';
|
||||
import { HomeComponent } from './home/home.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: 'acts',
|
||||
loadChildren: () => import('./acts/acts.module').then((mod) => mod.ActsModule),
|
||||
},
|
||||
{
|
||||
path: 'advocates',
|
||||
loadChildren: () => import('./advocates/advocates.module').then((mod) => mod.AdvocatesModule),
|
||||
},
|
||||
{
|
||||
path: 'case-types',
|
||||
loadChildren: () => import('./case-types/case-types.module').then((mod) => mod.CaseTypesModule),
|
||||
},
|
||||
{
|
||||
path: 'contacts',
|
||||
loadChildren: () => import('./contacts/contacts.module').then((mod) => mod.ContactsModule),
|
||||
},
|
||||
{
|
||||
path: 'courts',
|
||||
loadChildren: () => import('./courts/courts.module').then((mod) => mod.CourtsModule),
|
||||
},
|
||||
{
|
||||
path: 'court-statuses',
|
||||
loadChildren: () =>
|
||||
import('./court-statuses/court-statuses.module').then((mod) => mod.CourtStatusesModule),
|
||||
},
|
||||
{
|
||||
path: 'departments',
|
||||
loadChildren: () =>
|
||||
import('./departments/departments.module').then((mod) => mod.DepartmentsModule),
|
||||
},
|
||||
{
|
||||
path: 'natures',
|
||||
loadChildren: () => import('./natures/natures.module').then((mod) => mod.NaturesModule),
|
||||
},
|
||||
{
|
||||
path: 'offices',
|
||||
loadChildren: () => import('./offices/offices.module').then((mod) => mod.OfficesModule),
|
||||
},
|
||||
{
|
||||
path: 'office-statuses',
|
||||
loadChildren: () =>
|
||||
import('./office-statuses/office-statuses.module').then((mod) => mod.OfficeStatusesModule),
|
||||
},
|
||||
{
|
||||
path: 'roles',
|
||||
loadChildren: () => import('./roles/roles.module').then((mod) => mod.RolesModule),
|
||||
},
|
||||
{
|
||||
path: 'tax-report',
|
||||
loadChildren: () => import('./tax-report/tax-report.module').then((mod) => mod.TaxReportModule),
|
||||
},
|
||||
{
|
||||
path: 'users',
|
||||
loadChildren: () => import('./users/users.module').then((mod) => mod.UsersModule),
|
||||
},
|
||||
{ path: 'login', component: LoginComponent },
|
||||
{ path: 'logout', component: LogoutComponent },
|
||||
{ path: '', component: HomeComponent },
|
||||
];
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forRoot(routes, {
|
||||
onSameUrlNavigation: 'reload',
|
||||
relativeLinkResolution: 'legacy',
|
||||
}),
|
||||
],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class AppRoutingModule {}
|
||||
Reference in New Issue
Block a user