From 3ebebe7fbdf4c3ac89bc3b0699402152d1157eda Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Sun, 28 Sep 2025 15:04:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Directly=20import=20models;=20fo?= =?UTF-8?q?rce=20complete=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ohmyapi/core/templates/app/routes.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ohmyapi/core/templates/app/routes.py.j2 b/src/ohmyapi/core/templates/app/routes.py.j2 index a5a4d4f..044a533 100644 --- a/src/ohmyapi/core/templates/app/routes.py.j2 +++ b/src/ohmyapi/core/templates/app/routes.py.j2 @@ -1,6 +1,6 @@ from ohmyapi.router import APIRouter -from . import models +from .models import ... # Expose your app's routes via `router = fastapi.APIRouter`. # Use prefixes wisely to avoid cross-app namespace-collisions.