Modules
Each module lives in src/modules/<name>/ and follows the same structure:
index.js— controller functionsmodel.js— Mongoose schema (for data-backed modules)routes.js— Express router
Module Reference
Section titled “Module Reference”| Module | Route prefix | What it does |
|---|---|---|
auth | /api/v1/auth | Login, register, JWT issuance |
articles | /api/v1/article | Full article CRUD, publish, host-site assignment, moderation |
publisher | /api/v1/publisher | Publisher account management, RSS feed config, admin approval |
sites | /api/v1/sites | Manage the list of hosted child sites |
tags | /api/v1/tags | Create and list article tags |
category | /api/v1/category | Article categories |
geo | /api/v1/geo | Geographic data (used for article targeting) |
section | /api/v1/section | Content sections (e.g. news, opinion) |
children-sites | /api/v1/client | Read-only endpoints for child-site frontends |
s3 | /api/v1/sign-s3 | Generate pre-signed S3 URLs for image uploads |
contact | /api/v1/contact | Contact/inquiry form submissions |