mirror of
https://github.com/yaroslaff/antifraud2gis.git
synced 2026-04-26 10:41:54 +00:00
dbg
This commit is contained in:
parent
408664a602
commit
4b139b3003
1 changed files with 3 additions and 3 deletions
|
|
@ -387,9 +387,9 @@ async def catch_all(request: Request, full_path: str):
|
|||
if m:
|
||||
object_id = m.group(1)
|
||||
print(f"Extracted {object_id} from {full_path}")
|
||||
url = RedirectResponse(app.url_path_for("report", oid=object_id))
|
||||
print("Redirect to:", url)
|
||||
return url
|
||||
response = RedirectResponse(app.url_path_for("report", oid=object_id))
|
||||
print("Redirect to:", {response.headers['Location']})
|
||||
return response
|
||||
else:
|
||||
return RedirectResponse(app.url_path_for("home"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue