Merge pull request #3723 from schen59/master-schen

fix mismatch api path introduced by commit to issue #3600
This commit is contained in:
Torkel Ödegaard 2016-01-13 19:51:56 +01:00
commit e38e8c740f
1 changed files with 1 additions and 1 deletions

View File

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