Removed "name" from route, only need path.

This commit is contained in:
Travis Reeder
2016-08-07 14:58:05 -04:00
parent 40e1ebd434
commit 3d94fc64c9
8 changed files with 39 additions and 37 deletions

View File

@@ -27,7 +27,8 @@ func handleRouteUpdate(c *gin.Context) {
}
wroute.Route.AppName = c.Param("app")
wroute.Route.Name = c.Param("route")
log.Infoln("Route: ", c.Param("route"))
wroute.Route.Path = c.Param("route")
if err := wroute.Validate(); err != nil {
log.Error(err)