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

27 lines
549 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 QuotaService {
constructor(private http: HttpClient) {
}
quotas() {
return this.http.get(environment.apiUrl + "/quotas");
}
2021-06-01 12:24:55 +02:00
quotasAll() {
return this.http.get(environment.apiUrl + "/quotas/all");
}
2020-11-02 08:29:52 +01:00
quotasNew() {
return this.http.get(environment.apiUrl + "/quotas/new");
}
}