2023-02-09 12:16:36 +01:00
|
|
|
package http
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"forge.cadoles.com/arcad/edge/pkg/sdk"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (h *Handler) handleSDKClient(w http.ResponseWriter, r *http.Request) {
|
2023-11-28 16:35:49 +01:00
|
|
|
ServeFile(w, r, &sdk.FS, "client/dist/client.js")
|
2023-02-09 12:16:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *Handler) handleSDKClientMap(w http.ResponseWriter, r *http.Request) {
|
2023-11-28 16:35:49 +01:00
|
|
|
ServeFile(w, r, &sdk.FS, "client/dist/client.js.map")
|
2023-02-09 12:16:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *Handler) handleAppFiles(w http.ResponseWriter, r *http.Request) {
|
|
|
|
h.mutex.RLock()
|
|
|
|
defer h.mutex.RUnlock()
|
|
|
|
|
|
|
|
h.public.ServeHTTP(w, r)
|
|
|
|
}
|