Another way of route config

Now route name is key instead of type