diff --git a/README.md b/README.md index 73b56ef..7e0b585 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,8 @@ from ohmyapi.db.exceptions import DoesNotExist from .models import Tournament +# If .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")