updates service api endpoints to allow for nginx forwarding with ssh

This commit is contained in:
2026-07-04 21:10:36 +00:00
parent 97044bd854
commit ba99e88303
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ from app.user_models import User
router = APIRouter()
@router.get("/", response_model=list[ShowResponse])
@router.get("", response_model=list[ShowResponse])
async def list_shows(session: AsyncSession = Depends(get_session)):
query = (
select(Show)
@@ -40,7 +40,7 @@ async def get_show(
return show
@router.post("/", response_model=ShowResponse, status_code=201)
@router.post("", response_model=ShowResponse, status_code=201)
async def create_show(
payload: ShowCreate,
session: AsyncSession = Depends(get_session),