Files
MeowBox-Core/internal/handler/route.go
2025-11-22 22:57:54 +08:00

20 lines
472 B
Go

package handler
import "net/http"
func RouteStaticFiles() *http.ServeMux {
mux := http.NewServeMux()
mux.HandleFunc("/favicon.ico", StaticFileHandler)
mux.HandleFunc("/css/", StaticFileHandler)
mux.HandleFunc("/font-awesome/", StaticFileHandler)
mux.HandleFunc("/js/", StaticFileHandler)
mux.HandleFunc("/img/", StaticFileHandler)
return mux
}
func RouteInstall() *http.ServeMux {
mux := http.NewServeMux()
mux.HandleFunc("/", InstallWebHandler)
return mux
}