Bump deps

This commit is contained in:
2022-12-26 13:51:54 +01:00
parent 48781b33fe
commit 6dd89e4c69
5 changed files with 1794 additions and 2872 deletions
+2 -4
View File
@@ -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;
+2 -1
View File
@@ -1,3 +1,4 @@
export const environment = {
production: true
production: true,
apiUrl: 'https://api.nachklang.art'
};
+2 -1
View File
@@ -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'
};
/*