mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-04 13:27:21 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			268 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			268 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package controllers
 | 
						|
 | 
						|
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)
 | 
						|
}
 |