feat(adminui): embed the admin SPA and serve it next to the API
- Add internal/adminui with a SPA handler: index fallback for client routes, immutable caching for hashed assets, 404 for missing assets, security headers - Answer 503 with a hint when the UI has not been built, so go build always works - Mount the UI at / and the API at /api/ on the same listener, no CORS needed - Scaffold admin/ with Vite, React, TypeScript, Tailwind v4, shadcn/ui and Vitest
This commit is contained in:
parent
48c7124fcf
commit
5a0dd7f6d6
1 changed files with 7740 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +1,6 @@
|
|||
parsimony
|
||||
*.db
|
||||
*.db-*
|
||||
admin/node_modules
|
||||
internal/adminui/dist/*
|
||||
!internal/adminui/dist/.gitkeep
|
||||
|
|
|
|||
Loading…
Reference in a new issue