Module

cli._routes

chirp routes— list registered routes.

Resolves an import string to a chirp App and prints all registered routes with method, path, and handler info.

Functions

run_routes 1 None
List registered routes for a chirp app. Resolves ``args.app`` to an App instan…
def run_routes(args: argparse.Namespace) -> None

List registered routes for a chirp app.

Resolvesargs.appto an App instance, freezes it, and prints a table of METHOD, PATH, and handler name.

Parameters
Name Type Description
args argparse.Namespace