@@ -21,6 +21,7 @@ import { AddProblemComponent } from './components/add-problem/add-problem.compon
2121
2222import { AuthGuard } from './guards/auth.guard' ;
2323import { NotAuthGuard } from './guards/not-auth.guard' ;
24+ import { SolultionSubmitComponent } from './components/solultion-submit/solultion-submit.component' ;
2425
2526
2627const appRoutes : Routes = [
@@ -61,15 +62,18 @@ const appRoutes: Routes = [
6162 path : 'ide' ,
6263 component : IdeComponent
6364 } ,
65+ {
66+ path : ':contest/submit/:code' ,
67+ component : SolultionSubmitComponent
68+ } ,
6469 {
6570 path : 'contest/add-contest' ,
6671 component : AddContestComponent ,
6772 canActivate : [ AuthGuard ]
6873 } ,
6974 {
7075 path : 'contest/:contest' ,
71- component : ProblemsComponent ,
72- canActivate : [ NotAuthGuard ]
76+ component : ProblemsComponent
7377 } ,
7478 {
7579 path : 'contest/:contest/addproblem' ,
@@ -78,8 +82,7 @@ const appRoutes: Routes = [
7882 } ,
7983 {
8084 path : 'contest/:contest/:problem' ,
81- component : ProblemComponent ,
82- canActivate : [ NotAuthGuard ]
85+ component : ProblemComponent
8386 } ,
8487 {
8588 path : 'contest/edit/:edit-contest' ,
0 commit comments