Changed route params to object