xtablo-source/backend/internal/web
Arthur Belleville bdd3cba314
feat(07-01): wire embed.FS into NewRouter and RunMigrations into cmd/web/main.go
- backend/internal/web/router.go: staticDir string -> staticFS fs.FS; /healthz uses HealthzHandler(); /readyz registered with ReadyzHandler(pinger); embedded FS served via fs.Sub()
- backend/cmd/web/main.go: import assets "backend"; db.RunMigrations(ctx, pool, assets.Migrations) before router; web.NewRouter now receives assets.Static
- All *_test.go NewRouter call sites updated from "./static" to os.DirFS("./static"); "os" import added where missing
2026-05-15 18:14:33 +02:00
..
ui chore(04-01): Sortable.js bootstrap and soft-danger button CSS 2026-05-15 09:24:44 +02:00
csrf_debug_test.go feat(02-07): gorilla/csrf integration — mount middleware, wire all forms, env-driven key 2026-05-14 22:59:06 +02:00
csrf_test.go feat(07-01): wire embed.FS into NewRouter and RunMigrations into cmd/web/main.go 2026-05-15 18:14:33 +02:00
handlers.go feat(07-01): embed.go + RunMigrations + HealthzHandler()/ReadyzHandler() split 2026-05-15 18:14:26 +02:00
handlers_auth.go feat(02-07): gorilla/csrf integration — mount middleware, wire all forms, env-driven key 2026-05-14 22:59:06 +02:00
handlers_auth_test.go feat(07-01): wire embed.FS into NewRouter and RunMigrations into cmd/web/main.go 2026-05-15 18:14:33 +02:00
handlers_files.go fix(05): CR-01/WR-02/WR-03/WR-04 handlers_files.go fixes 2026-05-15 12:50:07 +02:00
handlers_files_test.go feat(07-01): wire embed.FS into NewRouter and RunMigrations into cmd/web/main.go 2026-05-15 18:14:33 +02:00
handlers_tablos.go feat(05-02): 3-tab layout + files templates + router + main.go S3 wiring 2026-05-15 12:28:33 +02:00
handlers_tablos_test.go feat(07-01): wire embed.FS into NewRouter and RunMigrations into cmd/web/main.go 2026-05-15 18:14:33 +02:00
handlers_tasks.go fix(04-WR-04): guard against int32 overflow in TaskCreateHandler position arithmetic 2026-05-15 10:19:48 +02:00
handlers_tasks_test.go feat(07-01): wire embed.FS into NewRouter and RunMigrations into cmd/web/main.go 2026-05-15 18:14:33 +02:00
handlers_test.go feat(07-01): embed.go + RunMigrations + HealthzHandler()/ReadyzHandler() split 2026-05-15 18:14:26 +02:00
middleware.go feat(01-03): pgxpool wrapper, RequestID/slog middleware, slog handler switch 2026-05-14 19:24:16 +02:00
router.go feat(07-01): wire embed.FS into NewRouter and RunMigrations into cmd/web/main.go 2026-05-15 18:14:33 +02:00
slog.go feat(01-03): pgxpool wrapper, RequestID/slog middleware, slog handler switch 2026-05-14 19:24:16 +02:00
testdb_test.go feat(02-04): signup handler, router wiring, and integration tests 2026-05-14 22:17:50 +02:00