Comment in data code

This commit is contained in:
kevinpauer
2022-03-19 22:11:29 +01:00
parent 9530d1b57f
commit 33c915f4be
5 changed files with 43 additions and 27 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,