Added delete permantly button

This commit is contained in:
NPS Agent
2026-05-11 16:11:20 +09:30
parent 13e92e2b27
commit df2157b6b9
6 changed files with 45 additions and 4 deletions
+8
View File
@@ -118,6 +118,14 @@ class ApiService {
return data;
}
async deleteTask(id) {
const data = await this.request(`/tasks/${id}`, {
method: 'DELETE',
});
this.notify();
return data;
}
async addAudit(auditData) {
const data = await this.request('/audit', {
method: 'POST',