Skip to content

Commit

Permalink
Comment out http requests code
Browse files Browse the repository at this point in the history
  • Loading branch information
rokinmaharjan committed Mar 11, 2018
1 parent 34ad2e1 commit ca18d57
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/quote/quote.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@ import {HttpClient} from "@angular/common/http";

@Injectable()
export class QuoteService {
private GET_ALL_QUOTES_URL = 'https://quotehouse-backend.herokuapp.com/quotes';
private POST_QUOTE_URL = 'https://quotehouse-backend.herokuapp.com/quotes/quote';
// private GET_ALL_QUOTES_URL = 'https://quotehouse-backend.herokuapp.com/quotes';
// private POST_QUOTE_URL = 'https://quotehouse-backend.herokuapp.com/quotes/quote';

private quotes: Quote[] = [];

constructor(private http: HttpClient) {
}

getQuotes(): Observable<Object> {
return this.http.get(this.GET_ALL_QUOTES_URL);
// return this.http.get(this.GET_ALL_QUOTES_URL);
return null;
}

addQuote(quote: Quote): Observable<Object> {
return this.http.post(this.POST_QUOTE_URL, quote);
// return this.http.post(this.POST_QUOTE_URL, quote);
return null;
}
}

0 comments on commit ca18d57

Please sign in to comment.