Skip to content

Commit

Permalink
let eunomnia access ask endpoint without login or any other token tha…
Browse files Browse the repository at this point in the history
…n shared sec
  • Loading branch information
Unischneider committed Nov 7, 2024
1 parent e343ffc commit f7a4b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/question_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def login(login_request: LoginRequest):
raise HTTPException(status_code=401, detail="Invalid username or password")


@router.post("/ask")
@router.post("/ask", dependencies=[Depends(auth_handler.verify_api_key)])
async def ask(request: UserRequest):
question = request.message
classification = request.study_program
Expand Down

0 comments on commit f7a4b00

Please sign in to comment.