2021-03-15 15:19:07 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
|
|
|
|
|
import { ChatPage } from './pages/chat/chat.page';
|
|
|
|
|
import { MessagesPage } from './pages/chat/messages/messages.page';
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: () => import('./index/index.module').then(m => m.IndexPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'empty-chat',
|
2021-03-05 16:43:17 +01:00
|
|
|
loadChildren: () => import('./shared/chat/empty-chat/empty-chat.module').then( m => m.EmptyChatPageModule)
|
2021-03-17 11:13:09 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'btn-criar',
|
|
|
|
|
loadChildren: () => import('./shared/buttons/btn-criar/btn-criar.module').then( m => m.BtnCriarPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'btn-adicionar',
|
|
|
|
|
loadChildren: () => import('./shared/buttons/btn-adicionar/btn-adicionar.module').then( m => m.BtnAdicionarPageModule)
|
2021-03-18 16:30:03 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'empty-container',
|
|
|
|
|
loadChildren: () => import('./shared/empty-container/empty-container.module').then( m => m.EmptyContainerPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'events-to-approve',
|
|
|
|
|
loadChildren: () => import('./shared/gabinete-digital/events-to-approve/events-to-approve.module').then( m => m.EventsToApprovePageModule)
|
2021-03-04 18:50:26 +01:00
|
|
|
},
|
2021-03-15 15:19:07 +01:00
|
|
|
|
|
|
|
|
/* {
|
|
|
|
|
path: 'chat',
|
|
|
|
|
component: ChatPage
|
|
|
|
|
} */
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
|
|
|
],
|
|
|
|
|
exports: [RouterModule]
|
|
|
|
|
})
|