added image filter

This commit is contained in:
Pedro Nasser
2016-08-11 01:04:11 -03:00
parent 5e892034e7
commit 39f59620aa
3 changed files with 7 additions and 1 deletions

View File

@@ -21,6 +21,10 @@ func handleRouteList(c *gin.Context) {
AppName: appName,
}
if img := c.Query("image"); img != "" {
filter.Image = img
}
routes, err := Api.Datastore.GetRoutes(filter)
if err != nil {
log.WithError(err).Error(models.ErrRoutesGet)