import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {SharedModule} from '../../shared/shared.module';

const routes: Routes = [
  {path: 'define', loadChildren: () => import('./define/define.weixin.module').then(m => m.WeixinDefineModule)},
  {path: 'menu', loadChildren: () => import('./menu/menu.weixin.module').then(m => m.WeixinMenuModule)},
  {path: 'param', loadChildren: () => import('./param/param.weixin.module').then(m => m.WeixinParamModule)},
  {path: 'processor', loadChildren: () => import('./processor/processor.weixin.module').then(m => m.WeixinProcessorModule)},
  {path: 'reply', loadChildren: () => import('./reply/reply.weixin.module').then(m => m.WeixinReplyModule)},
  {path: 'tag', loadChildren: () => import('./tag/tag.weixin.module').then(m => m.WeixinTagModule)},
  {path: 'template', loadChildren: () => import('./template/template.weixin.module').then(m => m.WeixinTemplateModule)},
  {path: 'user', loadChildren: () => import('./user/user.weixin.module').then(m => m.WeixinUserModule)},
];

@NgModule({
    imports: [
        SharedModule,
        RouterModule.forChild(routes)
    ],
    declarations: [],
    exports: [
        RouterModule
    ]
})
export class WeixinModule { }
