import { NgModule } from '@angular/core';
import { Routes } from '@angular/router';
import { NativeScriptRouterModule } from '@nativescript/angular';
import { MessageDetailComponent } from '~/pages/message/containers/message-detail/message-detail.component';
import { MessageComponent } from '~/pages/message/containers/message/message.component';

const routes: Routes = [
    {path: 'list', component: MessageComponent},
    {path: 'list/:id', component: MessageDetailComponent}
];

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