mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 10:07:43 +01:00
commit
e457487f68
@ -67,8 +67,10 @@ func initRouters() {
|
|||||||
beego.Router("/api/jobs/replication/:id([0-9]+)/log", &api.RepJobAPI{}, "get:GetLog")
|
beego.Router("/api/jobs/replication/:id([0-9]+)/log", &api.RepJobAPI{}, "get:GetLog")
|
||||||
beego.Router("/api/policies/replication/:id([0-9]+)", &api.RepPolicyAPI{})
|
beego.Router("/api/policies/replication/:id([0-9]+)", &api.RepPolicyAPI{})
|
||||||
beego.Router("/api/policies/replication", &api.RepPolicyAPI{}, "get:List")
|
beego.Router("/api/policies/replication", &api.RepPolicyAPI{}, "get:List")
|
||||||
|
beego.Router("/api/policies/replication", &api.RepPolicyAPI{}, "post:Post")
|
||||||
beego.Router("/api/policies/replication/:id([0-9]+)/enablement", &api.RepPolicyAPI{}, "put:UpdateEnablement")
|
beego.Router("/api/policies/replication/:id([0-9]+)/enablement", &api.RepPolicyAPI{}, "put:UpdateEnablement")
|
||||||
beego.Router("/api/targets/", &api.TargetAPI{}, "get:List")
|
beego.Router("/api/targets/", &api.TargetAPI{}, "get:List")
|
||||||
|
beego.Router("/api/targets/", &api.TargetAPI{}, "post:Post")
|
||||||
beego.Router("/api/targets/:id([0-9]+)", &api.TargetAPI{})
|
beego.Router("/api/targets/:id([0-9]+)", &api.TargetAPI{})
|
||||||
beego.Router("/api/targets/ping", &api.TargetAPI{}, "post:Ping")
|
beego.Router("/api/targets/ping", &api.TargetAPI{}, "post:Ping")
|
||||||
beego.Router("/api/users/:id/sysadmin", &api.UserAPI{}, "put:ToggleUserAdminRole")
|
beego.Router("/api/users/:id/sysadmin", &api.UserAPI{}, "put:ToggleUserAdminRole")
|
||||||
|
Loading…
Reference in New Issue
Block a user