Implement multi-file upload functionality for companies and enhance file upload routes
This commit is contained in:
@@ -77,6 +77,7 @@ func RegisterAdminRoutes(e *echo.Echo, userHandler *user.Handler, companyHandler
|
||||
companiesGP.DELETE("/:id", companyHandler.Delete)
|
||||
companiesGP.PATCH("/:id/status", companyHandler.UpdateStatus)
|
||||
companiesGP.PATCH("/:id/verification", companyHandler.UpdateVerification)
|
||||
companiesGP.POST("/:id/documents", companyHandler.UploadDocuments)
|
||||
}
|
||||
|
||||
// Admin Categories Routes
|
||||
@@ -204,6 +205,7 @@ func RegisterAdminRoutes(e *echo.Echo, userHandler *user.Handler, companyHandler
|
||||
{
|
||||
filesGP.Use(userHandler.AuthMiddleware())
|
||||
filesGP.POST("/upload", fileStoreHandler.Upload)
|
||||
filesGP.POST("/upload/batch", fileStoreHandler.UploadBatch)
|
||||
filesGP.GET("", fileStoreHandler.ListFiles)
|
||||
filesGP.GET("/:file_id/info", fileStoreHandler.GetInfo)
|
||||
filesGP.GET("/:file_id/download", fileStoreHandler.Download)
|
||||
@@ -333,6 +335,7 @@ func RegisterPublicRoutes(e *echo.Echo, customerHandler *customer.Handler, tende
|
||||
{
|
||||
publicFilesGP.Use(customerHandler.AuthMiddleware())
|
||||
publicFilesGP.POST("/upload", fileStoreHandler.Upload)
|
||||
publicFilesGP.POST("/upload/batch", fileStoreHandler.UploadBatch)
|
||||
publicFilesGP.GET("", fileStoreHandler.ListFiles)
|
||||
publicFilesGP.GET("/:file_id/info", fileStoreHandler.GetInfo)
|
||||
publicFilesGP.GET("/:file_id/download", fileStoreHandler.Download)
|
||||
|
||||
Reference in New Issue
Block a user