From ce4fe63a1c02d3871774091dad4ebd26e65f0f39 Mon Sep 17 00:00:00 2001 From: yhua123 Date: Thu, 21 Jul 2016 14:04:43 +0800 Subject: [PATCH] Update router.go clarify project get method and project/{id} get method --- ui/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/router.go b/ui/router.go index b35d53229..de9654406 100644 --- a/ui/router.go +++ b/ui/router.go @@ -58,8 +58,8 @@ func initRouters() { //API: beego.Router("/api/search", &api.SearchAPI{}) 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/projects/", &api.ProjectAPI{}, "get:List;post:Post") + beego.Router("/api/projects/:id", &api.ProjectAPI{}) beego.Router("/api/projects/:id/publicity", &api.ProjectAPI{}, "put:ToggleProjectPublic") beego.Router("/api/statistics", &api.StatisticAPI{}) beego.Router("/api/projects/:id([0-9]+)/logs/filter", &api.ProjectAPI{}, "post:FilterAccessLog")