aibilly_backend_code/check_routes.py
laxmanhalaki b793ac859a
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / build (push) Has been cancelled
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-production (push) Has been cancelled
modification done to up the project
2026-03-12 20:52:08 +05:30

10 lines
280 B
Python

from main import app
from fastapi.routing import APIRoute
print("Registered Routes:")
for route in app.routes:
if isinstance(route, APIRoute):
print(f"Path: {route.path} | Methods: {route.methods} | Name: {route.name}")
else:
print(f"Path: {route.path}")