Hi,
You can do something like this, since py4web uses ombott for routing and handling things:
@action("test")
def test():
import Abbott
for route in ombott.app.routes.values():
print(route.rule)
for method, handler in route.methods.items():
print(f"\t{method} - {handler.handler_fullname}")
return {}
example output:
/_dashboard/ticket/<ticket_uuid>
GET - apps._dashboard.error_ticket
POST - apps._dashboard.error_ticket
hope that helps