package routes import ( "fwh-toolbox-server/controllers" "github.com/gofiber/fiber/v2" ) func DataDownloadSetup(api fiber.Router) { group := api.Group("/dataDownload") group.Get("/tasks", controllers.GetDataDownloadTasks) group.Post("/tasks", controllers.CreateDataDownload) group.Get("/tasks/:id", controllers.GetDataDownloadTask) group.Get("/tasks/:id/documents/:documentId/file", controllers.DownloadDataDownloadTaskDocument) group.Get("/tasks/:id/files/:entryId", controllers.DownloadDataDownloadTaskFile) group.Put("/tasks/:id/description", controllers.UpdateDataDownloadDescription) group.Post("/tasks/:id/cancel", controllers.CancelDataDownload) group.Post("/tasks/:id/retry", controllers.RetryDataDownload) group.Delete("/tasks/:id", controllers.DeleteDataDownload) group.Get("/documents/:documentId/file", controllers.GetDataDownloadDocumentFile) group.Get("/documents", controllers.GetDataDownloadDocuments) group.Get("/documents/:documentId/references", controllers.GetDataDownloadDocumentReferences) group.Get("/documents/:documentId/files", controllers.GetDataDownloadDocumentFiles) group.Get("/documents/:documentId/files/:entryId", controllers.DownloadDataDownloadDocumentEntry) group.Delete("/documents/:documentId", controllers.DeleteDataDownloadDocument) group.Get("/documents/:documentId/archive", controllers.GetDataDownloadArchiveEntries) group.Get("/documents/:documentId/archive/file", controllers.GetDataDownloadArchiveEntry) group.Get("/packages", controllers.GetDataDownloadPackages) group.Post("/packages", controllers.CreateDataDownloadPackage) group.Get("/packages/:id/file", controllers.DownloadDataDownloadPackage) group.Post("/packages/:id/cancel", controllers.CancelDataDownloadPackage) group.Post("/packages/:id/retry", controllers.RetryDataDownloadPackage) group.Delete("/packages/:id", controllers.DeleteDataDownloadPackage) }