Skip to main content

routes_command

Show all registered routes with endpoints and methods.

def routes_command(
sort: string = endpoint,
all_methods: boolean = False
) - > None

Show all registered routes with endpoints and methods.

Parameters

NameTypeDescription
sortstring = endpointThe criteria used to order the displayed routes, such as by endpoint name, HTTP methods, domain/subdomain, or the rule pattern.
all_methodsboolean = FalseA flag that, when true, includes internal HTTP methods like HEAD and OPTIONS in the output table.

Returns

TypeDescription
NoneNothing; the function outputs a formatted table of routes directly to the console.