(route Route)
| 15 | } |
| 16 | |
| 17 | func (model Application) HasRoute(route Route) bool { |
| 18 | for _, boundRoute := range model.Routes { |
| 19 | if boundRoute.GUID == route.GUID { |
| 20 | return true |
| 21 | } |
| 22 | } |
| 23 | return false |
| 24 | } |
| 25 | |
| 26 | func (model Application) ToParams() AppParams { |
| 27 | state := strings.ToUpper(model.State) |