mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 21:59:43 +03:00
14 lines
265 B
Go
14 lines
265 B
Go
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)
|
|
}
|