mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-04 05:17:27 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			832 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			832 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package controllers
 | 
						|
 | 
						|
import (
 | 
						|
	"net/http"
 | 
						|
 | 
						|
	"github.com/owncast/owncast/router/middleware"
 | 
						|
)
 | 
						|
 | 
						|
// GetChatEmbedreadwrite gets the embed for readwrite chat.
 | 
						|
func GetChatEmbedreadwrite(w http.ResponseWriter, r *http.Request) {
 | 
						|
	// Set our global HTTP headers
 | 
						|
	middleware.SetHeaders(w)
 | 
						|
 | 
						|
	http.ServeFile(w, r, "webroot/index-standalone-chat-readwrite.html")
 | 
						|
}
 | 
						|
 | 
						|
// GetChatEmbedreadonly gets the embed for readonly chat.
 | 
						|
func GetChatEmbedreadonly(w http.ResponseWriter, r *http.Request) {
 | 
						|
	// Set our global HTTP headers
 | 
						|
	middleware.SetHeaders(w)
 | 
						|
 | 
						|
	http.ServeFile(w, r, "webroot/index-standalone-chat-readonly.html")
 | 
						|
}
 | 
						|
 | 
						|
// GetVideoEmbed gets the embed for video.
 | 
						|
func GetVideoEmbed(w http.ResponseWriter, r *http.Request) {
 | 
						|
	// Set our global HTTP headers
 | 
						|
	middleware.SetHeaders(w)
 | 
						|
 | 
						|
	http.ServeFile(w, r, "webroot/index-video-only.html")
 | 
						|
}
 |