removed obsolete endpoints and added missing endpoints
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
Thomas Peetz
2026-05-19 19:00:19 +02:00
parent f9f4a70a79
commit 4aa9cf8263
40 changed files with 589 additions and 152 deletions
@@ -0,0 +1,18 @@
from typing import List
from fastapi import APIRouter
from src.db.models.comic import Volume
from src.db.session import SessionDep
from src.schema.comics.volume import VolumeResponse, to_response
router = APIRouter()
@router.get("/volumes", response_model=List[VolumeResponse])
def get_issues(db: SessionDep) -> List[VolumeResponse]:
results: List[VolumeResponse] = []
worktypes = db.query(Volume).all()
for worktype in worktypes:
response = to_response(worktype)
results.append(response)
return results