ciyidogan commited on
Commit
612dd2d
·
verified ·
1 Parent(s): 34cc85c

Update flare-ui/src/app/services/api.service.ts

Browse files
flare-ui/src/app/services/api.service.ts CHANGED
@@ -180,7 +180,7 @@ export class ApiService {
180
 
181
  // ===================== Auth =====================
182
  login(username: string, password: string): Observable<any> {
183
- return this.http.post(`${this.apiUrl}/login`, { username, password }).pipe(
184
  tap((response: any) => {
185
  this.authService.setToken(response.token);
186
  this.authService.setUsername(response.username);
 
180
 
181
  // ===================== Auth =====================
182
  login(username: string, password: string): Observable<any> {
183
+ return this.http.post(`${this.adminUrl}/login`, { username, password }).pipe(
184
  tap((response: any) => {
185
  this.authService.setToken(response.token);
186
  this.authService.setUsername(response.username);