serve logo and favicon

This commit is contained in:
2026-07-31 12:50:50 -07:00
parent e53631a65b
commit ba8afc76cc
4 changed files with 11 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

+10
View File
@@ -11,6 +11,16 @@ func ServeLoginPage(route string) {
ServeWebpage(route, loginHandler)
}
func EnableLogoRoute() {
ServeWebpage("/logo", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "webserver/images/astraltech_logo.png")
})
ServeWebpage("/favicon.ico", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "webserver/images/astraltech_favicon.png")
})
}
func ServeWebpage(url string, handler func(http.ResponseWriter, *http.Request)) {
http.HandleFunc(url, handler)
routes = append(routes, url)