new voucher system
This commit is contained in:
@@ -11,11 +11,11 @@ export class VoucherService {
|
||||
constructor(private http: HttpClient) {
|
||||
}
|
||||
|
||||
registration() {
|
||||
return this.http.post(environment.apiUrl + "/vouchers/registration", {});
|
||||
get() {
|
||||
return this.http.get(environment.apiUrl + "/vouchers");
|
||||
}
|
||||
|
||||
addon() {
|
||||
return this.http.post(environment.apiUrl + "/vouchers/addon", {});
|
||||
create(name: string) {
|
||||
return this.http.post(environment.apiUrl + "/vouchers/" + name, {});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user