This commit is contained in:
2022-12-11 21:30:54 +01:00
parent fbefa6d847
commit d69d571393
7 changed files with 18 additions and 22 deletions

View File

@@ -17,15 +17,8 @@ export class AuthService {
ping() {
return new Promise((resolve, reject) => {
const headers = new HttpHeaders({
'Authorization': `Bearer ${this.apiToken}`
})
this.http$.get<any>(`${environment.api.url}/ping/ping`, {
headers,
withCredentials: true
}).subscribe({
this.http$.get<any>(`${environment.api.url}/ping/ping`).subscribe({
next: (data) => {
console.log('Ping', data);
resolve(data);
},
error: (e) => {