fix routes router and tests

This commit is contained in:
Pedro Nasser
2016-08-07 16:45:34 -03:00
parent 3d94fc64c9
commit 1eb88e794e
3 changed files with 13 additions and 17 deletions

View File

@@ -62,9 +62,9 @@ func bindHandlers(engine *gin.Engine) {
{
apps.GET("/routes", handleRouteList)
apps.POST("/routes", handleRouteCreate)
apps.GET("/routes/:route", handleRouteGet)
apps.PUT("/routes/:route", handleRouteUpdate)
apps.DELETE("/routes/:route", handleRouteDelete)
apps.GET("/routes/*route", handleRouteGet)
apps.PUT("/routes/*route", handleRouteUpdate)
apps.DELETE("/routes/*route", handleRouteDelete)
}
}