WelcomeController
classes show
method.Note that the controllers inherit Masonite baseController
class. This is required for Masonite to pick up your controller class in routes.
application/json
response.get_response()
method. This method needs to return any one of the above response types.id
parameter is in the route we can fetch the value of this parameter by specifying it in the controller method signature:Controller
class) using string binding in the registered controllers locations.app/controllers
and is defined in project Kernel.py
configuration file:Kernel.py
file by editing the default binding controllers.location
.add_controller_locations
:Kernel.py
file in the register_routes()
method.