mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-30 12:03:12 +00:00
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
import { Route } from '@angular/router';
|
|
import { ChatChatResolver, ChatChatsResolver, ChatContactsResolver, ChatProfileResolver } from 'app/modules/admin/apps/chat/chat.resolvers';
|
|
import { ChatComponent } from 'app/modules/admin/apps/chat/chat.component';
|
|
import { ChatsComponent } from 'app/modules/admin/apps/chat/chats/chats.component';
|
|
import { ConversationComponent } from 'app/modules/admin/apps/chat/conversation/conversation.component';
|
|
|
|
export const chatRoutes: Route[] = [
|
|
{
|
|
path : '',
|
|
component: ChatComponent,
|
|
resolve : {
|
|
chats : ChatChatsResolver,
|
|
contacts: ChatContactsResolver,
|
|
profile : ChatProfileResolver
|
|
},
|
|
children : [
|
|
{
|
|
path : '',
|
|
component: ChatsComponent,
|
|
children : [
|
|
{
|
|
path : '',
|
|
component: ConversationComponent,
|
|
children : [
|
|
{
|
|
path : ':id',
|
|
resolve: {
|
|
conversation: ChatChatResolver
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
];
|