remove restriction for id in router because the .../current api/

This commit is contained in:
Wenkai Yin 2016-05-31 15:03:45 +08:00
parent f0de98d9ad
commit 7dad92d607
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ func (n *NotificationHandler) Post() {
username = "anonymous"
}
if username == "job-service-user" {
if action == "pull" && username == "job-service-user" {
return
}

View File

@ -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{})