Bump deps
This commit is contained in:
@@ -3,13 +3,13 @@ import {HttpClient, HttpParams} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {Event} from '../models/event';
|
||||
import {UtilsService} from './utils.service';
|
||||
import { environment } from './../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ApiService {
|
||||
// apiUrl = 'https://api.nachklang.art/calendar/events/';
|
||||
apiUrl = 'http://localhost:3000/calendar/events/';
|
||||
apiUrl = environment.apiUrl + '/calendar/events/';
|
||||
|
||||
constructor(
|
||||
private http: HttpClient
|
||||
@@ -18,7 +18,6 @@ export class ApiService {
|
||||
|
||||
getEvents(calendar: string): Observable<Event[]> {
|
||||
try {
|
||||
// Get password
|
||||
let password = UtilsService.getPasswordFromLocalStorage();
|
||||
|
||||
let params = new HttpParams();
|
||||
@@ -32,7 +31,6 @@ export class ApiService {
|
||||
|
||||
updateEvent(event: Event): Observable<any> {
|
||||
try {
|
||||
// Get password
|
||||
let password = UtilsService.getPasswordFromLocalStorage();
|
||||
|
||||
let updateEvent: any = event;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export const environment = {
|
||||
production: true
|
||||
production: true,
|
||||
apiUrl: 'https://api.nachklang.art'
|
||||
};
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
// The list of file replacements can be found in `angular.json`.
|
||||
|
||||
export const environment = {
|
||||
production: false
|
||||
production: false,
|
||||
apiUrl: 'http://localhost:3000'
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user