fix mismatch api path

This commit is contained in:
Shaofeng Chen 2016-01-13 10:42:57 -08:00
parent dc427d5a2c
commit 4ceab4abc7

View File

@ -20,7 +20,7 @@ func GetOrgById(c *middleware.Context) Response {
return getOrgHelper(c.ParamsInt64(":orgId"))
}
// Get /api/orgs/:name
// Get /api/orgs/name/:name
func GetOrgByName(c *middleware.Context) Response {
query := m.GetOrgByNameQuery{Name: c.Params(":name")}
if err := bus.Dispatch(&query); err != nil {