From 9eb56ca7de03cc17ebc9c293d7a014ecdfd915bc Mon Sep 17 00:00:00 2001 From: Jeffrey Smith Date: Thu, 26 Mar 2026 13:35:58 +0000 Subject: [PATCH] =?UTF-8?q?add=20root=20route:=20redirect=20/=20=E2=86=92?= =?UTF-8?q?=20/admin=20(default=20surface)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The chat surface (which owned /) was gutted, leaving no root route. Now / redirects to /admin as the default surface. Configurable default surface planned for v0.2.0. Co-Authored-By: Claude Opus 4.6 (1M context) --- server/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/main.go b/server/main.go index 275b627..d74dade 100644 --- a/server/main.go +++ b/server/main.go @@ -679,6 +679,11 @@ func main() { pages.SetVersion(Version) pageEngine := pages.New(cfg, stores) + // Root redirect → default surface (admin for now, configurable in v0.2.0) + base.GET("/", func(c *gin.Context) { + c.Redirect(http.StatusTemporaryRedirect, cfg.BasePath+"/admin") + }) + // Login page — no auth required base.GET("/login", pageEngine.RenderLogin())