import { Injectable } from '@angular/core'; import { StorageService } from './storage.service'; import { ApiService } from "./api.service"; import { HttpClient } from '@angular/common/http'; @Injectable({ providedIn: 'root', }) export class WalletService { constructor( public api: ApiService, private http: HttpClient ) {} getCoupons(token) { return this.api.get("wallet/coupons", token); } }