started using environment variables
This commit is contained in:
1 parent
c9c7a92012
commit
8958ead210
12 files changed
+44
-23
No files matched your search
@@ -4,13 +4,13 @@ import { Observable, map } from 'rxjs';
|
||||
import { Entry } from '../../shared/models/entry.model';
|
||||
import { EntryId } from '../../shared/models/entryId.model';
|
||||
import { EntryRating } from '../../shared/models/entryRating.model';
|
||||
// import { environment } from '../../../environments/environment';
|
||||
import { environment } from '../../../environments/environment.prod';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class EntryService {
|
||||
private backend_apiUrl = 'http://localhost:4000/api/v1';
|
||||
private backend_apiUrl = environment.API_URL;
|
||||
private apiAction = 'entries';
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
Reference in new issue
Block a user