mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 14:54:24 +01:00
Include embed.js in the binary
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
|
||||
func renderEmbedjs(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/javascript")
|
||||
http.ServeFile(w, r, "templates/embed.js")
|
||||
return
|
||||
|
||||
fileContent, _ := static.ReadFile("static/embed.js")
|
||||
w.Write(fileContent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user