mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 17:17:46 +01:00
remove restriction for id in router because the .../current api/
This commit is contained in:
parent
f0de98d9ad
commit
7dad92d607
@ -71,7 +71,7 @@ func (n *NotificationHandler) Post() {
|
||||
username = "anonymous"
|
||||
}
|
||||
|
||||
if username == "job-service-user" {
|
||||
if action == "pull" && username == "job-service-user" {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ func initRouters() {
|
||||
|
||||
//API:
|
||||
beego.Router("/api/search", &api.SearchAPI{})
|
||||
beego.Router("/api/projects/:pid([0-9]+)/members/?:mid([0-9]+)", &api.ProjectMemberAPI{})
|
||||
beego.Router("/api/projects/:pid([0-9]+)/members/?:mid", &api.ProjectMemberAPI{})
|
||||
beego.Router("/api/projects/", &api.ProjectAPI{}, "get:List")
|
||||
beego.Router("/api/projects/?:id", &api.ProjectAPI{})
|
||||
beego.Router("/api/statistics", &api.StatisticAPI{})
|
||||
|
Loading…
Reference in New Issue
Block a user