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[HistoryEntryResponse])
|
||||
@router.get("", response_model=list[HistoryEntryResponse])
|
||||
async def list_history_entries(
|
||||
active: Optional[bool] = Query(None, description="Filter by active status"),
|
||||
session: AsyncSession = Depends(get_session),
|
||||
@@ -34,7 +34,7 @@ async def get_history_entry(entry_id: int, session: AsyncSession = Depends(get_s
|
||||
return entry
|
||||
|
||||
|
||||
@router.post("/", response_model=HistoryEntryResponse, status_code=201)
|
||||
@router.post("", response_model=HistoryEntryResponse, status_code=201)
|
||||
async def create_history_entry(
|
||||
payload: HistoryEntryCreate,
|
||||
session: AsyncSession = Depends(get_session),
|
||||
|
||||
Reference in New Issue
Block a user