package http import ( "net/http" "forge.cadoles.com/arcad/edge/pkg/sdk" ) func (h *Handler) handleSDKClient(w http.ResponseWriter, r *http.Request) { ServeFile(w, r, &sdk.FS, "client/dist/client.js") } func (h *Handler) handleSDKClientMap(w http.ResponseWriter, r *http.Request) { ServeFile(w, r, &sdk.FS, "client/dist/client.js.map") } func (h *Handler) handleAppFiles(w http.ResponseWriter, r *http.Request) { h.mutex.RLock() defer h.mutex.RUnlock() h.public.ServeHTTP(w, r) }