started using environment variables

This commit is contained in:
X4Lo committed 2024-06-04 02:26:18 +01:00
1 parent c9c7a92012
commit 8958ead210
12 files changed
+44 -23

No files matched your search

@@ -2,12 +2,13 @@ import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { EpisodeSeen } from '../../shared/models/episodeSeen.model';
import { EpisodeSeenDto } from '../../shared/models/dtos/episode-seen.dto';
import { environment } from '../../../environments/environment.prod';
@Injectable({
providedIn: 'root',
})
export class EpisodeSeenService {
private backend_apiUrl = 'http://localhost:4000/api/v1';
private backend_apiUrl = environment.API_URL;
private apiAction = 'episode-seen';
constructor(private http: HttpClient) {}