Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Clients/Angular/finki-chattery/src/app/modules/questioning/questioning.routes.ts

    r31a8672 ra3b5f34  
    11import { NgModule } from '@angular/core';
    22import { Routes, RouterModule } from '@angular/router';
    3 import { AuthorizedStudentGuard } from 'src/app/core/guards/authorized-student.guard';
    4 import { AskQuestionComponent } from './components/ask-question/ask-question.component';
     3import { QuestionPreviewGeneralComponent } from './components/question-preview-general/question-preview-general.component';
     4import { QuestioningGeneralComponent } from './components/questioning-general/questioning-general.component';
     5import { QuestionsPreviewGeneralComponent } from './components/questions-preview-general/questions-preview-general.component';
     6import { QuestionsSearchComponent } from './components/questions-search/questions-search.component';
    57
    68const routes: Routes = [
    79  {
    8     path: 'ask',
    9     component: AskQuestionComponent,
    10     canActivate: [AuthorizedStudentGuard]
     10    component: QuestioningGeneralComponent,
     11    path: '',
     12    children: [
     13      {
     14        path: 'preview',
     15        pathMatch: 'full',
     16        component: QuestionsPreviewGeneralComponent
     17      },
     18      {
     19        path: 'search',
     20        pathMatch: 'full',
     21        component: QuestionsSearchComponent
     22      },
     23      {
     24        path: ':questionUid',
     25        component: QuestionPreviewGeneralComponent
     26      }
     27    ]
    1128  }
    1229];
Note: See TracChangeset for help on using the changeset viewer.