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