Skip to content

Modules

Each module lives in src/modules/<name>/ and follows the same structure:

  • index.js — controller functions
  • model.js — Mongoose schema (for data-backed modules)
  • routes.js — Express router
ModuleRoute prefixWhat it does
auth/api/v1/authLogin, register, JWT issuance
articles/api/v1/articleFull article CRUD, publish, host-site assignment, moderation
publisher/api/v1/publisherPublisher account management, RSS feed config, admin approval
sites/api/v1/sitesManage the list of hosted child sites
tags/api/v1/tagsCreate and list article tags
category/api/v1/categoryArticle categories
geo/api/v1/geoGeographic data (used for article targeting)
section/api/v1/sectionContent sections (e.g. news, opinion)
children-sites/api/v1/clientRead-only endpoints for child-site frontends
s3/api/v1/sign-s3Generate pre-signed S3 URLs for image uploads
contact/api/v1/contactContact/inquiry form submissions