Skip to content

Commit

Permalink
add query param for example_id to v2 sync and v3 async
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Aug 1, 2024
1 parent 53a8036 commit e318e0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routers/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def script_to_api(page_cls: typing.Type[BasePage]):
def run_api_json(
request: Request,
page_request: request_model,
example_id: str | None = None,
user: AppUser = Depends(api_auth_header),
):
return _run_api(
Expand Down Expand Up @@ -226,6 +227,7 @@ def run_api_json_async(
request: Request,
response: Response,
page_request: request_model,
example_id: str | None = None,
user: AppUser = Depends(api_auth_header),
):
ret = _run_api(
Expand Down

0 comments on commit e318e0b

Please sign in to comment.