chore(display): directly bundle htmx

for more independence and offline support
This commit is contained in:
2025-11-15 11:16:22 +01:00
parent 273879c55a
commit c653538b31
5 changed files with 22 additions and 2 deletions
+6
View File
@@ -48,6 +48,12 @@ func StartWebServer(v string, port string) {
return ctx.HTML(http.StatusOK, shared.SplashScreenTemplate)
})
staticGroup := e.Group("/static")
staticGroup.Use(middleware.StaticWithConfig(middleware.StaticConfig{
Filesystem: http.FS(StaticDirFS),
HTML5: true,
}))
apiGroup := e.Group("/api")
apiGroup.Use(middleware.CORS())
apiGroup.GET("/ping", pingRoute)