Controller#

class gam.ast.program.Controller(*, name: Literal['Controller'] = 'Controller', methods: List[FunctionDeclaration] = None, **extra_data: Any)[source]#

Represents a controller.

A Controller is a collection of methods that are used to handle the requests and responses. It is used to perform the business logic of the application.

name: Literal['Controller']#
methods: List[FunctionDeclaration]#