📝 Clarify imprtance app.routes.router
This commit is contained in:
parent
ffac376dde
commit
0941a9e9d6
1 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue