去掉base/login 这个没有鉴权的api (#1427)
This commit is contained in:
@@ -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"},
|
||||
@@ -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"},
|
||||
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user