Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/autogen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# Code generated by APSO CLI. DO NOT EDIT.
# This file is auto-generated - any changes will be overwritten.
from fastapi import APIRouter

# `apso generate` replaces this with a router that includes every entity.
autogen_router = APIRouter(prefix="/api")

__all__ = ["autogen_router"]
10 changes: 5 additions & 5 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ async def api_root():
return {"message": "APSO API", "version": "1.0.0"}


# Import and include autogen routers
# Entity routers will be registered here by the APSO CLI
# Example:
# from app.autogen.routers import organization, user
# app.include_router(organization.router, prefix="/api/organizations", tags=["Organizations"])
# Routes generated from .apsorc (`apso generate` writes app/autogen).
# Include your own routers before this one to override a generated route.
from app.autogen import autogen_router # noqa: E402

app.include_router(autogen_router)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ authors = [
dependencies = [
"fastapi>=0.109.0",
"uvicorn[standard]>=0.27.0",
"sqlalchemy>=2.0.25",
"sqlalchemy[asyncio]>=2.0.25",
"asyncpg>=0.29.0",
"alembic>=1.13.1",
"pydantic>=2.5.3",
Expand Down
Loading