add form to edit employee

Reviewed-on: #23
Reviewed-by: Get in my car i have candy <huydw@proton.me>
This commit is contained in:
2025-01-09 11:10:51 +00:00
parent 5829876444
commit cd36904d45
9 changed files with 139 additions and 10 deletions

View File

@ -23,4 +23,8 @@ export default class EmployeeApiService {
public create(employee: Employee) {
return this.http.post<Employee>(`${EmployeeApiService.BASE_URL}/employees`, employee)
}
public update(employee: Employee, id: number) {
return this.http.patch(`${EmployeeApiService.BASE_URL}/employees/${id}`, employee)
}
}