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
@@ -13,7 +13,7 @@ from app.user_models import User
router = APIRouter()
@router.get("/", response_model=list[CommunityHighlightResponse])
@router.get("", response_model=list[CommunityHighlightResponse])
async def list_community_highlights(
active: Optional[bool] = Query(None, description="Filter by active status"),
session: AsyncSession = Depends(get_session),
@@ -34,7 +34,7 @@ async def get_community_highlight(highlight_id: int, session: AsyncSession = Dep
return highlight
@router.post("/", response_model=CommunityHighlightResponse, status_code=201)
@router.post("", response_model=CommunityHighlightResponse, status_code=201)
async def create_community_highlight(
payload: CommunityHighlightCreate,
session: AsyncSession = Depends(get_session),