Fix resource routing

@kaiassc 

Look at this and make sure it's good.