({ options })
| 175 | } |
| 176 | |
| 177 | function hasRoute ({ options }) { |
| 178 | const normalizedMethod = options.method?.toUpperCase() ?? '' |
| 179 | return router.hasRoute( |
| 180 | normalizedMethod, |
| 181 | options.url || '', |
| 182 | options.constraints |
| 183 | ) |
| 184 | } |
| 185 | |
| 186 | function findRoute (options) { |
| 187 | const route = router.find( |