From 0941a9e9d60e18bb677fd18065d863b34998c063 Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Sat, 27 Sep 2025 15:50:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Clarify=20imprtance=20app.routes?= =?UTF-8?q?.router?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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")