📝 Clarify imprtance app.routes.router

This commit is contained in:
Brian Wiborg 2025-09-27 15:50:20 +02:00
parent ffac376dde
commit 0941a9e9d6
No known key found for this signature in database

View file

@ -126,6 +126,8 @@ from ohmyapi.db.exceptions import DoesNotExist
from .models import Tournament from .models import Tournament
# If <app>.routes.router exists and is an APIRouter, OhMyAPI will
# automatically pick it up and add it to the app's main APIRouter.
router = APIRouter(prefix="/tournament") router = APIRouter(prefix="/tournament")