AP-64 (#86)
closes #64 Reviewed-on: #86
This commit was merged in pull request #86.
This commit is contained in:
@@ -14,4 +14,8 @@ export class AllowanceService {
|
||||
getAllowanceList(userId: number): Observable<Array<Allowance>> {
|
||||
return this.http.get<Allowance[]>(`${this.url}/user/${userId}/allowance`);
|
||||
}
|
||||
|
||||
createAllowance(allowance: Partial<Allowance>, userId: number) {
|
||||
this.http.post(`${this.url}/user/${userId}/allowance`, allowance).subscribe();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user