added AI generated favicon
This commit is contained in:
BIN
frontend/media/favicon.ico
Normal file
BIN
frontend/media/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
@@ -19,6 +19,7 @@ import (
|
||||
//go:embed jscss/htmx.min.js
|
||||
//go:embed jscss/htmx-ext-sse.js
|
||||
//go:embed templates/main.html
|
||||
//go:embed media/favicon.ico
|
||||
var WebFiles embed.FS
|
||||
|
||||
// Sends a Ping to keep the connection alive
|
||||
|
||||
4
main.go
4
main.go
@@ -43,9 +43,13 @@ func main() {
|
||||
http.HandleFunc("/sse", frontend.SSEventHandler)
|
||||
http.HandleFunc("/pdf", frontend.PDFHandler)
|
||||
http.HandleFunc("/compile", frontend.PDFCompile)
|
||||
|
||||
jscss, _ := fs.Sub(frontend.WebFiles, "jscss")
|
||||
http.Handle("/jscss/", http.StripPrefix("/jscss/", http.FileServer(http.FS(jscss))))
|
||||
|
||||
favicon, _ := fs.Sub(frontend.WebFiles, "media")
|
||||
http.Handle("/favicon.ico", http.FileServer(http.FS(favicon)))
|
||||
|
||||
// rocket
|
||||
go server.ListenAndServe()
|
||||
if globals.AppConfig.WebserverSecure {
|
||||
|
||||
Reference in New Issue
Block a user