最新的api路径
This commit is contained in:
@@ -14,47 +14,47 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
[]rest.Route{
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/product/list",
|
||||
Path: "/api/product/list",
|
||||
Handler: GetProductListHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/product/success-recommand",
|
||||
Path: "/api/product/success-recommand",
|
||||
Handler: GetSuccessRecommandHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/product/get-size-by-product",
|
||||
Path: "/api/product/get-size-by-product",
|
||||
Handler: GetSizeByProductHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/product/design",
|
||||
Path: "/api/product/design",
|
||||
Handler: GetProductDesignHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Path: "/product/design-gather",
|
||||
Path: "/api/product/design-gather",
|
||||
Handler: DesignGatherHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/product/info",
|
||||
Path: "/api/product/info",
|
||||
Handler: GetProductInfoHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Path: "/product/save-design",
|
||||
Path: "/api/product/save-design",
|
||||
Handler: SaveDesignHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/product/other-list",
|
||||
Path: "/api/product/other-list",
|
||||
Handler: OtherProductListHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/product/recommand",
|
||||
Path: "/api/product/recommand",
|
||||
Handler: GetRecommandProductListHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user