added AI generated favicon

This commit is contained in:
Maximilian Wagner
2025-12-27 19:45:11 +01:00
parent 9420221400
commit bc77d8b938
3 changed files with 5 additions and 0 deletions

BIN
frontend/media/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -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

View File

@@ -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 {