Add injection app routes to code generation (#1034)

* Add injection app routes to code generation

* Update get table sqls

* Update get table sqls

* Fix lint

* Fix sql scripts syntax
This commit is contained in:
Wu Clan
2026-01-25 15:14:01 +08:00
committed by GitHub
parent a6da0bfd41
commit a496932138
3 changed files with 154 additions and 98 deletions
@@ -5,4 +5,4 @@ from backend.core.conf import settings
v1 = APIRouter(prefix=settings.FASTAPI_API_V1_PATH{% if tag %}, tags=['{{ tag }}']{% endif %})
v1.include_router({{ table_name }}_router, prefix='/{{ table_name.replace('_', '-') }}s')
v1.include_router({{ table_name }}_router, prefix='/{{ table_name.replace('_', '/') }}s')