refactor bug report handlers to use centralized JSON response functions and add delete functionality

This commit is contained in:
Flavio Fois
2026-03-18 09:32:01 +01:00
parent 52947965db
commit 3f54e1cea4
3 changed files with 102 additions and 121 deletions

View File

@@ -90,7 +90,8 @@ func main() {
r.Get("/{id}/files", handlers.GetReportFilesByReportID(db))
r.Get("/{id}/files/{file_id}", handlers.GetReportFileByFileID(db))
r.Get("/{id}/download", handlers.GetBugReportZipById(db))
r.Patch("/{id}/status", handlers.PatchReportStatus(db))
r.Patch("/{id}/status", handlers.PatchBugReportStatus(db))
r.Delete("/{id}", handlers.DeleteBugReportByID(db))
})
})
})