Aller directement au contenu principal

openhands.server.routes.security

security_api

@app.route('/security/{path:path}', methods=['GET', 'POST', 'PUT', 'DELETE'])
async def security_api(request: Request)

Catch-all route for security analyzer API requests.

Each request is handled directly to the security analyzer.

Arguments:

  • request Request - The incoming FastAPI request object.

Returns:

  • Any - The response from the security analyzer.

Raises:

  • HTTPException - If the security analyzer is not initialized.