Skip to content

Commit

Permalink
removed use of server url from logout call to match login
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcaprice committed Nov 1, 2023
1 parent ba35af5 commit 9ed6331
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/src/app/account/service/auth-jwt.service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Injectable } from '@angular/core'
import { HttpClient, HttpResponse } from '@angular/common/http'
import { Observable } from 'rxjs'

import { SERVER_API_URL } from '../../../app/app.constants'
import { ILoginCredentials, ILoginResult } from '../model/login.model'

@Injectable({ providedIn: 'root' })
Expand Down Expand Up @@ -31,6 +29,6 @@ export class AuthServerProvider {
*/

logout(): Observable<any> {
return this.http.post(SERVER_API_URL + '/auth/logout', null)
return this.http.post('/auth/logout', null)
}
}

0 comments on commit 9ed6331

Please sign in to comment.