2022-06-19 15:30:32 -07:00
|
|
|
package controllers
|
2020-11-06 15:12:35 -08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2021-10-11 14:56:00 -07:00
|
|
|
"github.com/owncast/owncast/static"
|
2020-11-06 15:12:35 -08:00
|
|
|
)
|
|
|
|
|
2022-06-20 22:12:44 -07:00
|
|
|
var staticServer = http.FileServer(http.FS(static.GetWeb()))
|
|
|
|
|
2022-06-19 15:30:32 -07:00
|
|
|
// serveWeb will serve web assets.
|
|
|
|
func serveWeb(w http.ResponseWriter, r *http.Request) {
|
2022-06-20 22:12:44 -07:00
|
|
|
staticServer.ServeHTTP(w, r)
|
2020-11-06 15:12:35 -08:00
|
|
|
}
|