mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
12 lines
265 B
Go
12 lines
265 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// ServeCustomJavascript will serve optional custom Javascript.
|
|
func (h *Handlers) ServeCustomJavascript(w http.ResponseWriter, r *http.Request) {
|
|
js := configRepository.GetCustomJavascript()
|
|
_, _ = w.Write([]byte(js))
|
|
}
|