started using environment variables
This commit is contained in:
1 parent
c9c7a92012
commit
8958ead210
12 files changed
+44
-23
No files matched your search
@@ -1,13 +1,13 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { EntrySeen } from '../../shared/models/entrySeen.model';
|
||||
import { EntryRating } from '../../shared/models/entryRating.model';
|
||||
import { environment } from '../../../environments/environment.prod';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class EntryRatingsService {
|
||||
private backend_apiUrl = 'http://localhost:4000/api/v1';
|
||||
private backend_apiUrl = environment.API_URL;
|
||||
private apiAction = 'entry-ratings';
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
@@ -16,7 +16,7 @@ export class EntryRatingsService {
|
||||
return this.http.put<EntryRating>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}/${entryRatings.id}`,
|
||||
{
|
||||
entryR: entryRatings
|
||||
entryR: entryRatings,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user