basic login/logout

This commit is contained in:
eneller
2026-03-07 14:48:19 +01:00
parent 111d1a7b48
commit f5ae9ac9e6
7 changed files with 49 additions and 16 deletions

View File

@@ -17,4 +17,7 @@ export class APIService {
login(username: string, password: string): Observable<any>{
return this.http.post(this.apiUrl + '/auth/login',{ 'username': username, 'password': password});
}
logout(): Observable<any>{
return this.http.post(this.apiUrl + '/auth/logout', {});
}
}