we_bstly-web/src/app/services/voucher.service.ts

21 lines
488 B
TypeScript
Raw Normal View History

2020-11-02 08:29:52 +01:00
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from '../../environments/environment';
@Injectable({
providedIn: 'root',
})
export class VoucherService {
constructor(private http: HttpClient) {
}
registration() {
return this.http.post(environment.apiUrl + "/vouchers/registration", {});
}
addon() {
return this.http.post(environment.apiUrl + "/vouchers/addon", {});
}
}