Skip to content

Commit

Permalink
去掉base/login 这个没有鉴权的api (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
SliverHorn committed May 22, 2023
1 parent 2005408 commit 70ace27
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions server/source/system/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ func (i *initApi) InitializeData(ctx context.Context) (context.Context, error) {
return ctx, system.ErrMissingDBContext
}
entities := []sysModel.SysApi{
{ApiGroup: "base", Method: "POST", Path: "/base/login", Description: "用户登录(必选)"},

{ApiGroup: "jwt", Method: "POST", Path: "/jwt/jsonInBlacklist", Description: "jwt加入黑名单(退出,必选)"},

{ApiGroup: "系统用户", Method: "DELETE", Path: "/user/deleteUser", Description: "删除用户"},
Expand Down
3 changes: 0 additions & 3 deletions server/source/system/casbin.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
return ctx, system.ErrMissingDBContext
}
entities := []adapter.CasbinRule{
{Ptype: "p", V0: "888", V1: "/base/login", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/user/admin_register", V2: "POST"},

{Ptype: "p", V0: "888", V1: "/api/createApi", V2: "POST"},
Expand Down Expand Up @@ -157,7 +156,6 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
{Ptype: "p", V0: "888", V1: "/chatGpt/getSK", V2: "GET"},
{Ptype: "p", V0: "888", V1: "/chatGpt/deleteSK", V2: "DELETE"},

{Ptype: "p", V0: "8881", V1: "/base/login", V2: "POST"},
{Ptype: "p", V0: "8881", V1: "/user/admin_register", V2: "POST"},
{Ptype: "p", V0: "8881", V1: "/api/createApi", V2: "POST"},
{Ptype: "p", V0: "8881", V1: "/api/getApiList", V2: "POST"},
Expand Down Expand Up @@ -197,7 +195,6 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
{Ptype: "p", V0: "8881", V1: "/customer/customerList", V2: "GET"},
{Ptype: "p", V0: "8881", V1: "/user/getUserInfo", V2: "GET"},

{Ptype: "p", V0: "9528", V1: "/base/login", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/user/admin_register", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/api/createApi", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/api/getApiList", V2: "POST"},
Expand Down

0 comments on commit 70ace27

Please sign in to comment.