Jaymon / endpoints

Lightweight REST api backend framework that automatically maps urls to python modules and classes
MIT License
29 stars 10 forks source link

Should BaseApplication.find_controller_info be moved to Router? #134

Closed Jaymon closed 2 months ago

Jaymon commented 7 months ago

There could be a Router.create_controller method that gets called from BaseApplication.create_controller and then Router can internalize all the controller info stuff. A pro would be all that stuff is in one place, a con would be Router would now have to know about Request and Response, or just Request if it didn't want to create an actual controller instance.