feat(server): add attachment schemas and GET /attachment/categories

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-08-12 13:37:24 +08:00
parent baa841ae42
commit ab774b8661
4 changed files with 223 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ except Exception as e:
from app.api.v1.location import router as location_router
from app.api.v1.box import router as box_router
from app.api.v1.attachment import router as attachment_router
from app.services.location_service import (
AlreadyOffShelfError,
DuplicateLocationError,
@@ -36,6 +37,7 @@ app = FastAPI(title="CargoTrace API", version="0.1.0")
app.include_router(location_router, prefix="/CargoTrace")
app.include_router(box_router, prefix="/CargoTrace")
app.include_router(attachment_router, prefix="/CargoTrace")
@app.exception_handler(DuplicateLocationError)