cleaned entry service

This commit is contained in:
X4Lo committed 2024-04-01 21:31:45 +00:00
1 parent c539ab6162
commit a292d40237
1 file changed
-8
@@ -10,12 +10,4 @@ import { EntryRating } from '../../shared/models/entryRating.model';
providedIn: 'root', providedIn: 'root',
}) })
export class EntryService { export class EntryService {
constructor(private http: HttpClient) {}
// private apiUrl = environment.apiBaseUrl;
private baseUrl = 'http://localhost:4000/api/v1';
addEntry(tmdb_id: string): Observable<Entry> {
return this.http.post<Entry>(`${this.baseUrl}/entries`, { tmdb_id: tmdb_id });
}
} }