import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { RoleEditComponent } from './role-edit.component';
import { RolesComponent } from './roles.component';
import { SessionsComponent } from './sessions.component';
import { UsersComponent } from './users.component';

const routes: Routes = [
  { path: 'users', component: UsersComponent },
  { path: 'roles', component: RolesComponent },
  { path: 'role-edit', component: RoleEditComponent },
  { path: 'sessions', component: SessionsComponent },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class SysRoutingModule { }
