@@ -15,14 +15,14 @@ export class ContestService {
1515 public authToken : any ;
1616 public user : any ;
1717 public contest : any ;
18- public domain = 'http://localhost:80/' ;
18+ public domain = 'http://localhost:80/' ;
1919 public options ;
2020 public sol ;
2121 public toggler : boolean ;
2222
2323
2424
25- private contestSource = new BehaviorSubject < string > ( ' default contest ' ) ;
25+ private contestSource = new BehaviorSubject < string > ( 'default contest' ) ;
2626 currentContest = this . contestSource . asObservable ( ) ;
2727
2828 private Toggler = new BehaviorSubject < boolean > ( true ) ;
@@ -60,12 +60,12 @@ export class ContestService {
6060 }
6161
6262 public addProblem ( problem , contest ) : Observable < any > {
63- return this . http . post ( this . domain + 'contest/' + contest , problem )
63+ return this . http . post ( 'contest/' + contest , problem )
6464 . map ( res => res . json ( ) ) ;
6565 }
6666
6767 public getProblems ( contest ) : Observable < any > {
68- return this . http . get ( this . domain + 'contest/' + contest )
68+ return this . http . get ( 'contest/' + contest )
6969 . map ( res => res . json ( ) ) ;
7070 }
7171
@@ -75,7 +75,7 @@ export class ContestService {
7575 }
7676
7777 public addSolution ( solution ) : Observable < any > {
78- return this . http . post ( this . domain + 'solution' , solution )
78+ return this . http . post ( 'solution' , solution )
7979 . map ( res => res . json ( ) ) ;
8080 }
8181 public deleteContest ( contest ) {
@@ -94,7 +94,7 @@ export class ContestService {
9494 }
9595
9696 getRankings ( contest ) {
97- return this . http . get ( this . domain + 'rankings/' + contest )
97+ return this . http . get ( 'rankings/' + contest )
9898 . map ( res => res . json ( ) ) ;
9999 }
100100 ontoggle ( value : boolean ) {
0 commit comments