mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
openapi取消登录校验
This commit is contained in:
@@ -3,11 +3,14 @@ package core
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/eolinker/go-common/ignore"
|
||||
|
||||
"github.com/APIParkLab/APIPark/resources/access"
|
||||
"github.com/eolinker/go-common/pm3"
|
||||
)
|
||||
|
||||
func (p *plugin) ServiceApis() []pm3.Api {
|
||||
ignore.IgnorePath("login", http.MethodGet, "/api/v1/service/swagger/:id")
|
||||
return []pm3.Api{
|
||||
// 项目
|
||||
pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/service/info", []string{"context", "query:service"}, []string{"service"}, p.serviceController.Get, access.SystemWorkspaceServiceViewAll, access.TeamTeamServiceView),
|
||||
|
||||
Reference in New Issue
Block a user