From 2fb096f1c33ebbff777da0d36536fe10494e2d75 Mon Sep 17 00:00:00 2001 From: tangjiawei Date: Thu, 16 Jan 2025 11:37:06 +0800 Subject: [PATCH] =?UTF-8?q?#116=20=E8=8F=9C=E5=8D=95=E7=BB=91=E5=AE=9AAPI?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taskman-server/api/api.go | 2 +- taskman-server/conf/menu-api-map.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/taskman-server/api/api.go b/taskman-server/api/api.go index 252aab3d..50d2e64f 100644 --- a/taskman-server/api/api.go +++ b/taskman-server/api/api.go @@ -49,7 +49,7 @@ func init() { {Url: "/user/roles", Method: "GET", HandlerFunc: role.GetUserRoles, ApiCode: "user-roles-get"}, {Url: "/request-template/query", Method: "POST", HandlerFunc: template.QueryRequestTemplate, ApiCode: "request-template-query-post"}, {Url: "/request-template/:id", Method: "GET", HandlerFunc: template.GetRequestTemplate, ApiCode: "request-template-get"}, - {Url: "/request-template/all", Method: "GET", HandlerFunc: template.GetAllLatestReleaseRequestTemplate, ApiCode: "request-template-all-get"}, + {Url: "/request-template/latest/all", Method: "GET", HandlerFunc: template.GetAllLatestReleaseRequestTemplate, ApiCode: "request-template-all-get"}, {Url: "/request-template/roles", Method: "POST", HandlerFunc: template.GetRequestTemplateRoles, ApiCode: "request-template-roles-post"}, {Url: "/request-template", Method: "POST", HandlerFunc: template.CreateRequestTemplate, ApiCode: "request-template-post"}, {Url: "/request-template", Method: "PUT", HandlerFunc: template.UpdateRequestTemplate, ApiCode: "request-template-put"}, diff --git a/taskman-server/conf/menu-api-map.json b/taskman-server/conf/menu-api-map.json index 3337f879..30af22cc 100644 --- a/taskman-server/conf/menu-api-map.json +++ b/taskman-server/conf/menu-api-map.json @@ -654,7 +654,7 @@ "method": "post" }, { - "url": "/taskman/api/v1/request-template/all", + "url": "/taskman/api/v1/request-template/latest/all", "method": "get" }, {