@@ -13,6 +13,7 @@ import { DiscussComponent } from './components/discuss/discuss.component';
1313import { ContestComponent } from './components/contest/contest.component' ;
1414import { AboutComponent } from './components/about/about.component' ;
1515import { IdeComponent } from './components/ide/ide.component' ;
16+ import { ProblemsComponent } from './components/problems/problems.component' ;
1617
1718
1819
@@ -21,16 +22,17 @@ const appRoutes: Routes = [
2122 { path : 'about' , component : AboutComponent } ,
2223 { path : 'register' , component : RegisterComponent } ,
2324 { path : 'login' , component : LoginComponent } ,
24- { path : 'practice ' , component : PracticeComponent } ,
25+ { path : 'problems ' , component : PracticeComponent } ,
2526 { path : 'contest' , component : ContestComponent } ,
2627 { path : 'discuss' , component : DiscussComponent } ,
2728 { path : 'profile' , component : ProfileComponent } ,
2829 { path : 'ide' , component : IdeComponent } ,
30+ { path : 'problems/:problem' , component : ProblemsComponent }
2931] ;
3032
3133@NgModule ( {
3234 imports : [ RouterModule . forRoot ( appRoutes ) ] ,
3335 exports : [ RouterModule ]
3436} )
35- export class AppRoutingModule {
36- }
37+ export class AppRoutingModule {
38+ }
0 commit comments