Init webapp

This commit is contained in:
Peter Rossa
2023-05-10 15:02:48 +02:00
parent 88111e2acf
commit b101ccf6b6
60 changed files with 2519 additions and 1206 deletions

View File

@@ -0,0 +1,25 @@
import { Injectable } from "@angular/core";
import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Observable } from "rxjs";
import { environment } from "../../environments/environment";
import { LoginService } from "../auth/login.service";
@Injectable({
providedIn: "root",
})
export class GameTitlesService {
constructor(private http: HttpClient, private userService: LoginService) {}
public getAllGameTitles(): Observable<any> {
let jwtToken: String = this.userService.getUserSecurityToken(),
headers: HttpHeaders = new HttpHeaders({
authorization: "bearer " + jwtToken,
}),
options = { headers: headers };
return this.http.get<any>(
environment.apiBaseUrl + "secure/allGameTitles",
options
);
}
}