最新的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,17 +14,17 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
[]rest.Route{
{
Method: http.MethodGet,
Path: "/product-model/detail",
Path: "/api/product-model/detail",
Handler: GetModelDetailHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/product-model/other-info",
Path: "/api/product-model/other-info",
Handler: GetModelOtherInfoHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/product-model/update-model",
Path: "/api/product-model/update-model",
Handler: UpdateProductModelHandler(serverCtx),
},
},