feat: agregar identidad visual e iconos del proyecto (SVG, ICO, PNG) y desplegar en producción

This commit is contained in:
2026-10-20 11:16:49 -05:00
parent 8fedd61318
commit 7b58170540
11 changed files with 102 additions and 4 deletions
+11
View File
@@ -56,6 +56,17 @@ func main() {
mux := http.NewServeMux()
// Archivos estáticos e iconos
fs := http.FileServer(http.Dir("web/static"))
mux.Handle("GET /static/", http.StripPrefix("/static/", fs))
mux.HandleFunc("GET /favicon.ico", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "web/static/favicon.ico")
})
mux.HandleFunc("GET /favicon.svg", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "image/svg+xml")
http.ServeFile(w, r, "web/static/favicon.svg")
})
// Rutas Web
mux.HandleFunc("GET /", h.Index)
mux.HandleFunc("GET /v/{id}", h.View)