Allow customisation of resource route token.