How erickouassi/the-collection-of-catholic-prayers-api works
This Node.js REST API serves curated Catholic prayers, the Stations of the Cross, and English and French saint calendars as JSON. A client request reaches the HTTP router, which delegates each supported route to the controller; the controller returns static datasets or filters a language-specific saints list for today. The router serializes the result in its response. README capabilities and additional today-saint routes visible in the router are included. Source excerpts are partial, so the graph reflects only evidenced calls and documented capabilities.
Main entry points: controller.js Content Controller · index.js HTTP Router · db_prayers.js Basic Prayers · db_stations_of_cross.js Stations of Cross
Components 7
HTTP API
- HTTP Router
index.js
Content Access
- Content Controller
controller.js
Prayer Content
- Basic Prayers
db_prayers.js - Stations of Cross
db_stations_of_cross.js
Saint Calendars
- English Saints
db_saint_of_the_day.js - French Saints
db_saint_du_jour.js
Other components
- API Client
Connections 7
- API Client → HTTP Router: requests
README.md - HTTP Router → Content Controller: dispatches
index.js - Content Controller → Basic Prayers: returns
controller.js - Content Controller → Stations of Cross: returns
controller.js - Content Controller → English Saints: returns / filters
controller.js - Content Controller → French Saints: returns / filters
controller.js - HTTP Router → API Client: JSON response
index.js