Skip to content

Commit 2cc7041

Browse files
committed
App Build
1 parent bab8dd3 commit 2cc7041

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

codecamp-front/src/app/components/home/home.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<h1>CodeCamp
99
</h1>
1010

11-
<h3 class="title"> Eat, Sleep and Code. </h3>
11+
<h3 class="title"> Eat, Code, Sleep and Repeat </h3>
1212
</div>
1313
</div>
1414
</div>

codecamp-front/src/app/services/auth.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'rxjs/add/operator/toPromise';
1111
export class AuthService {
1212
public authToken: any;
1313
public user: any;
14-
public domain = 'http://localhost:3000/';
14+
//public domain = 'http://localhost:3000/';
1515
public options;
1616

1717
constructor(
@@ -33,12 +33,12 @@ export class AuthService {
3333
this.authToken = localStorage.getItem('token'); // Get tokens and asssign to variable to be used elsewhere
3434
}
3535
public registerUser(user) {
36-
return this.http.post(this.domain + 'users/signup', user)
36+
return this.http.post('users/signup', user)
3737
.map(res => res.json());
3838
}
3939

4040
public loginUser(user) {
41-
return this.http.post(this.domain + 'users/signin', user)
41+
return this.http.post('users/signin', user)
4242
.map(res => res.json());
4343
}
4444

@@ -77,6 +77,6 @@ export class AuthService {
7777
}
7878
getProfile() {
7979
this.createAuthenticationHeaders();
80-
return this.http.get(this.domain + 'users/profile', this.options).map(res => res.json());
80+
return this.http.get('users/profile', this.options).map(res => res.json());
8181
}
8282
}

codecamp-front/src/app/services/contest.service.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class ContestService {
1515
public authToken: any;
1616
public user: any;
1717
public contest: any;
18-
public domain = 'http://localhost:3000/';
18+
//public domain = 'http://localhost:3000/';
1919
public options;
2020
public sol;
2121
public toggler: boolean;
@@ -48,36 +48,36 @@ export class ContestService {
4848

4949
public addContest(contest) {
5050
return this.http
51-
.post(this.domain + 'contest', contest)
51+
.post( 'contest', contest)
5252
.map(res => res.json());
5353
}
5454

5555
public getContest(): Observable<any> {
56-
return this.http.get(this.domain + 'contest')
56+
return this.http.get( 'contest')
5757
.map(res => res.json());
5858
}
5959

6060
public addProblem(problem, contest): Observable<any> {
61-
return this.http.post(this.domain + 'contest/' + contest, problem)
61+
return this.http.post( 'contest/' + contest, problem)
6262
.map(res => res.json());
6363
}
6464

6565
public getProblems(contest): Observable<any> {
66-
return this.http.get(this.domain + 'contest/' + contest)
66+
return this.http.get( 'contest/' + contest)
6767
.map(res => res.json());
6868
}
6969

7070
public getProblem(code, contest): Observable<any> {
71-
return this.http.get(this.domain + 'contest/' + contest + '/problems/' + code)
71+
return this.http.get( 'contest/' + contest + '/problems/' + code)
7272
.map(res =>res.json());
7373
}
7474

7575
public addSolution(solution): Observable<any> {
76-
return this.http.post(this.domain + 'solution', solution)
76+
return this.http.post( 'solution', solution)
7777
.map(res => res.json());
7878
}
7979
public deleteContest(contest) {
80-
return this.http.delete(this.domain + 'contest/' + contest)
80+
return this.http.delete( 'contest/' + contest)
8181
.map(res => res.json());
8282
}
8383
public setSolution(sol){
@@ -92,7 +92,7 @@ export class ContestService {
9292
}
9393

9494
getRankings(contest) {
95-
return this.http.get(this.domain + 'rankings/' + contest)
95+
return this.http.get( 'rankings/' + contest)
9696
.map(res => res.json());
9797
}
9898
ontoggle(value: boolean){

server/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>CodeCamp</title><base href="/"><meta name="viewport" content="width=device-width,initial-scale=1"><link id="favicon" rel="shortcut icon" type="image/png" href="assets/home-icon.png"><link href="styles.566c475774011b74521e.bundle.css" rel="stylesheet"/></head><body><app-root><div class="loader-container"><div class="loader"></div></div></app-root><script type="text/javascript" src="inline.8529ddeb4f77a79e5464.bundle.js"></script><script type="text/javascript" src="polyfills.0da2a5ae0dbf7e5c112c.bundle.js"></script><script type="text/javascript" src="scripts.6a2647738f2583d45d4b.bundle.js"></script><script type="text/javascript" src="main.1242a20de8e587e29cdd.bundle.js"></script></body></html>
1+
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>CodeCamp</title><base href="/"><meta name="viewport" content="width=device-width,initial-scale=1"><link id="favicon" rel="shortcut icon" type="image/png" href="assets/home-icon.png"><link href="styles.566c475774011b74521e.bundle.css" rel="stylesheet"/></head><body><app-root><div class="loader-container"><div class="loader"></div></div></app-root><script type="text/javascript" src="inline.1bb4b8a70941150e6321.bundle.js"></script><script type="text/javascript" src="polyfills.0da2a5ae0dbf7e5c112c.bundle.js"></script><script type="text/javascript" src="scripts.6a2647738f2583d45d4b.bundle.js"></script><script type="text/javascript" src="main.20c80e28d599d713107b.bundle.js"></script></body></html>

server/public/inline.8529ddeb4f77a79e5464.bundle.js renamed to server/public/inline.1bb4b8a70941150e6321.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/public/main.1242a20de8e587e29cdd.bundle.js renamed to server/public/main.20c80e28d599d713107b.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)