edit: bypass pydicom upload auth

This commit is contained in:
mario
2025-05-17 09:37:40 +07:00
parent 36417fe515
commit ed3feb77d2
2 changed files with 22 additions and 1 deletions

View File

@@ -134,6 +134,9 @@ func SetupRouter(cfg *config.Config, logger *zap.Logger) http.Handler {
// Query routes - accessible by all roles
r.Get("/", dicomHandler.ForwardRequest) // Study list with filters
// DICOM upload endpoint - for pydicom-uploader service
r.Post("/", dicomHandler.ForwardRequest) // Upload studies
})
// Expertise doctors have full access to all DICOM endpoints
@@ -159,7 +162,7 @@ func SetupRouter(cfg *config.Config, logger *zap.Logger) http.Handler {
pydicomHandler := handlers.NewPydicomHandler(logger, shortLinkService, registerService)
// Add route for uploaded DICOM
r.Post("/uploaded_dicom", pydicomHandler.HandleUploadedDicom)
r.Post("/uploaded-dicom", pydicomHandler.HandleUploadedDicom)
})
return r