import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: '',
    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  },
  {
    path: 'tab4',
    loadChildren: () => import('./tab4/tab4.module').then( m => m.Tab4PageModule)
  },
  {
        path: 'tab3',
        loadChildren: () => import('./tab3/tab3.module').then(m => m.Tab3PageModule)
  },
  {
    path: 'trade',
    loadChildren: () => import('./trade/trade.module').then( m => m.TradePageModule)
  },
  {
    path: 'resort',
    loadChildren: () => import('./resort/resort.module').then( m => m.ResortPageModule)
  },
  {
    path: 'lostfound',
    loadChildren: () => import('./lostfound/lostfound.module').then( m => m.LostfoundPageModule)
  },
  {
    path: 'activity',
    loadChildren: () => import('./activity/activity.module').then( m => m.ActivityPageModule)
  },
  {
    path: 'chat',
    loadChildren: () => import('./chat/chat.module').then( m => m.Tab1PageModule)
  },
  {
    path: 'chat-test1/:username',
    loadChildren: () => import('./chat/chat.module').then( m => m.Tab1PageModule)
  },
  {
    path: 'login',
    loadChildren: () => import('./tab3/login/login.module').then( m => m.LoginPageModule)
  },
  {
    path: 'nologin',
    loadChildren: () => import('./tab3/nologin/nologin.module').then( m => m.NologinPageModule)
  },
  {
    path: 'edit-info',
    loadChildren: () => import('./tab3/edit-info/edit-info.module').then( m => m.EditInfoPageModule)
  }
];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
