add status management for bug reports and update routing

This commit is contained in:
Flavio Fois
2026-03-17 21:14:54 +01:00
parent b23915d3b0
commit 52947965db
4 changed files with 121 additions and 45 deletions

View File

@@ -86,9 +86,11 @@ func main() {
r.Get("/", handlers.GetAllBugReports(db))
r.Get("/{id}", handlers.GetBugReportByID(db))
r.Get("/{id}/status", handlers.GetReportStatusByID(db))
r.Get("/{id}/files", handlers.GetReportFilesByReportID(db))
r.Get("/{id}/files/{file_id}", handlers.GetReportFileByFileID(db))
r.Get("/{id}/zip", handlers.GetBugReportZipById(db))
r.Get("/{id}/download", handlers.GetBugReportZipById(db))
r.Patch("/{id}/status", handlers.PatchReportStatus(db))
})
})
})