Commit 10c5ad52 authored by Vladislav Bogac's avatar Vladislav Bogac

fixed

parent 49f13ac4
export class BonusTokenMockService {
public getToken(): string{
return '';
}
}
import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {UserService} from '../../user/user.service';
import {DefaultSettings} from '../../../lib/default.settings';
import {Observable} from 'rxjs';
import {StorageKey} from '../../../lib/enums/enums';
@Injectable({
providedIn: 'root'
})
export class BonusTokenService {
constructor(private http: HttpClient, private userService: UserService) {
}
public getBonusToken(): Observable<string> {
return this.http.get<string>(`${DefaultSettings.httpApiEndpoint}/member/token/bonus`, {
headers: {authorization: sessionStorage.getItem(StorageKey.QuizToken)},
});
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment