move each endpoint/controller to separate file