AI Bot commited on
Commit
9d40235
·
1 Parent(s): a51ef54

Allow all HTTP methods on the root endpoint

Browse files
Files changed (1) hide show
  1. api.py +1 -1
api.py CHANGED
@@ -189,7 +189,7 @@ def run_scan_job(job_id: str, domain: str, limit: int, is_auto: bool = False):
189
 
190
  # --- Endpoints ---
191
 
192
- @app.get("/")
193
  def home():
194
  # Serve the static UI by default
195
  if os.path.exists("static/index.html"):
 
189
 
190
  # --- Endpoints ---
191
 
192
+ @app.api_route("/", methods=["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"])
193
  def home():
194
  # Serve the static UI by default
195
  if os.path.exists("static/index.html"):