From 285704080361a45d5ca7604851437d9ad3c93a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Br=C3=BCckner?= Date: Mon, 8 Jun 2026 13:40:36 +0200 Subject: [PATCH] docs(architecture): remove revision history, add PUT /caddy/routes/{id} to API reference --- ARCHITECTURE.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index a5eae34..f6c2cdd 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -1,21 +1,10 @@ # GhostGrid ## Architecture Reference -**Version:** 1.1 -**Date:** June 8, 2026 **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. -### 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 @@ -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 /routes # { system, custom } routes [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] ```