new voucher system

This commit is contained in:
_Bastler
2021-10-06 15:24:57 +02:00
parent d1c598a8e1
commit 3a29e2db87
3 changed files with 15 additions and 34 deletions
+4 -4
View File
@@ -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, {});
}
}