app.routes Module

Routes module — Defines all URL endpoints for the Y2K blog.

This module contains the view functions to be registered with the Flask app. Each function includes a Flasgger (OpenAPI 3.0) docstring for automatic documentation at /apidocs.

app.routes.register_routes(application)[source]

Registers all URL rules with the Flask app instance.

Binds three endpoints — Home (/), Write (/write), and Guestbook (/guestbook) — to the Flask app. Each view function contains a Flasgger OpenAPI YAML docstring for automatic exposure in Swagger UI.

Parameters:

application (Flask) – Flask application instance. The app object created by the create_app() factory.

Returns:

This function has no return value. It registers routes

on the app as a side effect.

Return type:

None