New Version frontend

This commit is contained in:
kevinpauer
2022-03-26 16:34:29 +01:00
21 changed files with 205 additions and 30 deletions

View File

@@ -12,14 +12,14 @@ const httpOptions = {
export class AuthService {
constructor(private http: HttpClient) {}
login(username: string, password: string): Observable<any> {
return this.http.post(AUTH_API + 'login', {
return this.http.post(AUTH_API + '/login', {
username,
password,
});
}
register(username: string, password: string): Observable<any> {
return this.http.post(
AUTH_API + 'signup',
AUTH_API + '/register',
{
username,
password,