Adding in support for multiple routes definitions through an array

Thanks @nickl- for supplying the code so quickly