Merge pull request #85 from pedronasser/standard-route-response

Standard route response
This commit is contained in:
Travis Reeder
2016-08-30 11:32:52 -07:00
committed by GitHub
9 changed files with 16 additions and 16 deletions

View File

@@ -75,5 +75,5 @@ func handleRouteCreate(c *gin.Context) {
return
}
c.JSON(http.StatusCreated, routeResponse{"Route successfully created", wroute})
c.JSON(http.StatusCreated, routeResponse{"Route successfully created", wroute.Route})
}