Project base

SSR pages are in views/, REST API are in /api.

Status: OK

Important things

These endpoints should always work.

Repo structure

  • public/ -> entrypoints (index.php, api/index.php)
  • lib/ -> shared helpers (router, response, bootstrap)
  • views/ -> layouts / pages / partials
  • sql/ -> schema scripts

Important to follow so all stays safe

API

Everything under /api returns JSON only.

Views

Views render data only, no SQL.