最新的api路径

This commit is contained in:
eson
2023-07-12 14:11:04 +08:00
parent 3c9fb417aa
commit 4dbb77b306
29 changed files with 221 additions and 162 deletions

View File

@@ -14,22 +14,22 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
[]rest.Route{
{
Method: http.MethodGet,
Path: "/upload/up-file",
Path: "/api/upload/up-file",
Handler: UploadUpFileHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/upload/upload-file-frontend",
Path: "/api/upload/upload-file-frontend",
Handler: UploadFileFrontendHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/upload/upload-file-backend",
Path: "/api/upload/upload-file-backend",
Handler: UploadFileBackendHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/upload/qrcode",
Path: "/api/upload/qrcode",
Handler: UploadQrcodeHandler(serverCtx),
},
},