owncast/webserver/handlers/web.go

15 lines
265 B
Go
Raw Permalink Normal View History

package handlers
import (
"net/http"
"github.com/owncast/owncast/static"
)
var staticServer = http.FileServer(http.FS(static.GetWeb()))
// serveWeb will serve web assets.
func serveWeb(w http.ResponseWriter, r *http.Request) {
staticServer.ServeHTTP(w, r)
}