only generate slim routes if we are currently on resource route