M4: split web UI assets into app.css and app.js

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 21:05:34 -04:00
parent 93e779348c
commit 76816ae188
5 changed files with 248 additions and 217 deletions
+6
View File
@@ -44,6 +44,12 @@ func (s *Server) Router() *gin.Engine {
r.GET("/", func(c *gin.Context) {
c.FileFromFS("/", http.FS(sub))
})
r.GET("/app.css", func(c *gin.Context) {
c.FileFromFS("/app.css", http.FS(sub))
})
r.GET("/app.js", func(c *gin.Context) {
c.FileFromFS("/app.js", http.FS(sub))
})
r.GET("/events", s.handleEvents)
r.POST("/planning", s.handlePlanning)
r.POST("/coach", s.handleCoach)