working test deploy config
This commit is contained in:
@@ -2,15 +2,15 @@ import { Injectable, inject } from '@angular/core';
|
||||
import { HttpClient, HttpParams } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { environment } from '../../environments/environment';
|
||||
import { Event } from '../interfaces/event';
|
||||
import { getAppConfig } from './app-config.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class EventService {
|
||||
private http = inject(HttpClient);
|
||||
private baseUrl = `${environment.apiBaseUrl}/api/events`;
|
||||
private baseUrl = `${getAppConfig().apiBaseUrl}/api/events`;
|
||||
|
||||
/** Fetch events, optionally filtered by active status. */
|
||||
getEvents(active?: boolean): Observable<Event[]> {
|
||||
|
||||
Reference in New Issue
Block a user