mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
added image filter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user