New Version frontend
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user