Skip to content

Commit

Permalink
#116 菜单绑定API权限
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiawei committed Jan 16, 2025
1 parent e5e6a3a commit 2fb096f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion taskman-server/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
2 changes: 1 addition & 1 deletion taskman-server/conf/menu-api-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
"method": "post"
},
{
"url": "/taskman/api/v1/request-template/all",
"url": "/taskman/api/v1/request-template/latest/all",
"method": "get"
},
{
Expand Down

0 comments on commit 2fb096f

Please sign in to comment.