added docstrings to event controller and moved constants

This commit is contained in:
Lucas Jensen
2024-05-02 18:30:45 -07:00
parent 9b1dfc3767
commit f953ae3dfe
16 changed files with 100 additions and 42 deletions

View File

@@ -13,7 +13,15 @@ from app.models.musician import Musician
from app.models.user import User
class Controller:
class MainController:
"""
The main controller and entry point for all API requests.
All methods are either pass-throughs to the appropriate controller or
are used to coordinate multiple controllers.
token-based authentication is handled here as needed per the nature of the data being accessed.
"""
def __init__(self) -> None:
self.event_controller = EventController()
self.musician_controller = MusicianController()