Better way to define methods


I have an api with a lot of method (app->get(...), app->post(...) ...) approximately 150 methods. I wondered if the fact that all these methods is defines in index.php could slow the execution of petitions? Is there a way to be able to define all the method of each controller in a file for better organization and keep index.php clean?



Hi, you can use this base project it will easier to manage your method :