fix Authorization

This commit is contained in:
2025-11-11 17:47:08 +08:00
parent 64c0a10193
commit c40be9daf8
10 changed files with 326 additions and 29 deletions

View File

@@ -841,6 +841,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/authorization/download/:documentId",
Handler: authorization.DownloadAuthorizationDocumentHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/authorization/download/file/:fileName",
Handler: authorization.DownloadAuthorizationDocumentByNameHandler(serverCtx),
},
},
rest.WithPrefix("/api/v1"),
)