configure routes using handlers