docs(architecture): remove revision history, add PUT /caddy/routes/{id} to API reference

This commit is contained in:
Brückner
2026-06-08 13:40:36 +02:00
parent acadf8db7c
commit 2857040803

View File

@ -1,21 +1,10 @@
# GhostGrid # GhostGrid
## Architecture Reference ## Architecture Reference
**Version:** 1.1
**Date:** June 8, 2026
**Status:** Living document — single source of truth for the codebase **Status:** Living document — single source of truth for the codebase
> Use this document as the starting context for any future task on GhostGrid. It describes the whole application: purpose, stack, file layout, data model, REST API, frontend structure, integrations, background jobs, security, and deployment. > Use this document as the starting context for any future task on GhostGrid. It describes the whole application: purpose, stack, file layout, data model, REST API, frontend structure, integrations, background jobs, security, and deployment.
### Revision History
| Version | Date | Changes |
|---------|------|---------|
| 1.3 | Jun 8, 2026 | Auto-import Caddyfile on first Caddy enable; default admin user on first start |
| 1.2 | Jun 8, 2026 | Removed `caddy_prod_domain` / `caddy_dev_domain` settings; Caddy now routes only custom entries |
| 1.1 | Jun 8, 2026 | Dropped the migration layer (fresh-install schema); renamed the `caddy_routes` table to `caddy` |
| 1.0 | Jun 8, 2026 | Initial architecture reference generated from the codebase |
--- ---
## 1. Executive Summary ## 1. Executive Summary
@ -387,6 +376,7 @@ All `/api/*` routes return JSON. Every route except the public auth/config endpo
+-- GET /status # Caddy admin API reachable? [auth] +-- GET /status # Caddy admin API reachable? [auth]
+-- GET /routes # { system, custom } routes [auth] +-- GET /routes # { system, custom } routes [auth]
+-- POST /routes # Add custom route + push config [auth] +-- POST /routes # Add custom route + push config [auth]
+-- PUT /routes/{id} # Update custom route + push config [auth]
+-- DELETE /routes/{id} # Remove custom route + push config [auth] +-- DELETE /routes/{id} # Remove custom route + push config [auth]
``` ```