I have one page in angular 1 for Leave workflow and i want to use it for two different routes! hourly leave and daily leave. some component in page is changed by hourly or daily state. how can i do it? 

```
    one page 'Leave.html' for tow route:
    www.....com/leave/hourly
    www.....com/leave/daily

```

can i use current path in controller ,split and get last part , then use last keyword in switch case for 'hourly' and 'daily'?

is there a way with angular route? 

thanks