Fix embedded static files on production builds
This commit is contained in:
parent
9cbce4ff14
commit
a2c3f52ab4
12 changed files with 209 additions and 3083 deletions
|
|
@ -3,7 +3,7 @@ package sync
|
|||
import (
|
||||
"github.com/Gleipnir-Technology/nidus-sync/api"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/auth"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/html"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/static"
|
||||
"github.com/go-chi/chi/v5"
|
||||
)
|
||||
|
||||
|
|
@ -92,6 +92,6 @@ func Router() chi.Router {
|
|||
r.Method("GET", "/text/{destination}", authenticatedHandler(getTextMessages))
|
||||
r.Method("GET", "/tile/gps", auth.NewEnsureAuth(getTileGPS))
|
||||
|
||||
html.AddStaticRoute(r, "/static")
|
||||
static.AddStaticRoute(r, "/static")
|
||||
return r
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue