updates service api endpoints to allow for nginx forwarding with ssh
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user