Frontend: put version number in static URL to cache-bust on updates
All checks were successful
/ build-container (push) Successful in 8m40s

This commit is contained in:
Finn 2025-02-23 14:48:35 -08:00
parent 426ab872dd
commit f90a7cd66d
4 changed files with 7 additions and 4 deletions

View file

@ -28,7 +28,7 @@ func ListenAndServe(zwaveClient *zwavejs.Client) {
server.Use(accessLogMiddleware)
server.RouteNotFound("/*", tmpl("404.html"))
server.StaticFS("/static", frontend.Static)
server.StaticFS("/static-"+config.Version, frontend.Static)
server.GET("/", indexHandler)
server.GET("/locks/:lock", lockHandler)
server.GET("/locks/:lock/edit", lockEditHandler)