We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e610f5d commit 1fb8085Copy full SHA for 1fb8085
src/server/routers/ingest.py
@@ -1,6 +1,6 @@
1
"""Ingest endpoint for the API."""
2
3
-from fastapi import APIRouter
+from fastapi import APIRouter, Request
4
from fastapi.responses import JSONResponse
5
6
from server.form_types import IntForm, OptStrForm, StrForm
@@ -21,7 +21,7 @@
21
)
22
@limiter.limit("10/minute")
23
async def api_ingest(
24
- *,
+ request: Request, # noqa: ARG001 (unused) pylint: disable=unused-argument
25
input_text: StrForm,
26
max_file_size: IntForm,
27
pattern_type: StrForm = "exclude",
@@ -36,6 +36,8 @@ async def api_ingest(
36
37
Parameters
38
----------
39
+ request : Request
40
+ FastAPI request object
41
input_text : StrForm
42
Git repository URL or slug to ingest
43
max_file_size : IntForm
0 commit comments