import {RouterModule, Routes} from '@angular/router';
import {AdminComponent} from './layouts/admin-layout/admin-layout.component';
import {MainComponent} from './main-module/main.component/main.component';
import {NgModule} from '@angular/core';

export const routes: Routes = [
  {
    path: '',
    redirectTo: 'main/generate-image',
    pathMatch: 'full'
  },
  {
    path: 'main',
    loadChildren: () =>
      import('./main-module/main.module').then((m) => m.MainModule),
  }

];
@NgModule({
  imports: [RouterModule.forRoot(routes)],//, { useHash: true }
  exports: [RouterModule],
})
export class AppRoutingModule {}

