(app: Application)
| 25 | @public |
| 26 | */ |
| 27 | export default function currentPath(app: Application) { |
| 28 | assert('[BUG] app.__container__ is not set', app.__container__); |
| 29 | |
| 30 | let routingService = app.__container__.lookup('service:-routing'); |
| 31 | assert( |
| 32 | '[BUG] service:-routing is not a RoutingService', |
| 33 | routingService instanceof RoutingService |
| 34 | ); |
| 35 | |
| 36 | return get(routingService, 'currentPath'); |
| 37 | } |