route filter improvement

This commit is contained in:
Pedro Nasser
2016-08-13 19:25:07 -03:00
parent 680bd08137
commit c5025142bf
8 changed files with 96 additions and 12 deletions

View File

@@ -113,6 +113,8 @@ func bindHandlers(engine *gin.Engine) {
v1.PUT("/apps/:app", handleAppUpdate)
v1.DELETE("/apps/:app", handleAppDelete)
v1.GET("/routes", handleRouteList)
apps := v1.Group("/apps/:app")
{
apps.GET("/routes", handleRouteList)