AP-65 (#87)
closes #65 Reviewed-on: #87
This commit was merged in pull request #87.
This commit is contained in:
@@ -15,7 +15,15 @@ export class AllowanceService {
|
||||
return this.http.get<Allowance[]>(`${this.url}/user/${userId}/allowance`);
|
||||
}
|
||||
|
||||
getAllowanceById(allowanceId: number, userId: number): Observable<Allowance> {
|
||||
return this.http.get<Allowance>(`${this.url}/user/${userId}/allowance/${allowanceId}`);
|
||||
}
|
||||
|
||||
createAllowance(allowance: Partial<Allowance>, userId: number) {
|
||||
this.http.post(`${this.url}/user/${userId}/allowance`, allowance).subscribe();
|
||||
}
|
||||
|
||||
updateAllowance(allowance: Partial<Allowance>, allowanceId: number, userId: number) {
|
||||
this.http.put(`${this.url}/user/${userId}/allowance/${allowanceId}`, allowance).subscribe();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user