source: Sources/frontend/src/app/app-routing.module.ts@ 8423429

Last change on this file since 8423429 was 8423429, checked in by AngelNasev <angel.nasev@…>, 17 months ago

Add backend and frontend projects

  • Property mode set to 100644
File size: 1.6 KB
Line 
1import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router';
3import {LoginComponent} from "./login/login.component";
4import {StudentCourseComponent} from "./student-course/student-course.component";
5import {QuestionComponent} from "./question/question.component";
6import {QuestionDetailsComponent} from "./question-details/question-details.component";
7import {SubjectComponent} from "./subject/subject.component";
8import {AddQuestionComponent} from "./add-question/add-question.component";
9import {AddAnswerComponent} from "./add-answer/add-answer.component";
10import {AdminPanelComponent} from "./admin-panel/admin-panel.component";
11import {MaterialsComponent} from "./materials/materials.component";
12import {AddMaterialComponent} from "./add-material/add-material.component";
13
14
15const routes: Routes = [
16 { path: '', redirectTo: '/login', pathMatch: 'full' },
17 { path: 'login', component: LoginComponent },
18 { path: 'courses', component: StudentCourseComponent },
19 { path: 'allCourses', component: SubjectComponent },
20 { path: 'admin-panel', component: AdminPanelComponent},
21 { path: 'add-question/:id', component: AddQuestionComponent},
22 { path: 'add-answer/:id', component:AddAnswerComponent},
23 { path: 'details/:id', component: QuestionComponent },
24 { path: 'question-details/:id', component: QuestionDetailsComponent},
25 { path: 'materials/:id', component: MaterialsComponent},
26 { path: 'add-materials', component: AddMaterialComponent}
27];
28
29@NgModule({
30 imports: [RouterModule.forRoot(routes)],
31 exports: [RouterModule]
32})
33export class AppRoutingModule {
34
35}
Note: See TracBrowser for help on using the repository browser.