import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ApiAuthComponent } from './components/api-auth/api-auth.component';
import { MenuManagerComponentsIndexComponent } from './components/index/index.component';

const routes: Routes = [
  { path: '', redirectTo: 'index', pathMatch: 'full' },
  { path: 'index', component: MenuManagerComponentsIndexComponent },
  { path: 'auth', component: ApiAuthComponent },
];

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