10 lines
280 B
Python
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}")
|