func handleRoutes(mux *mux.Mux) { mux.Handle("/", routes.MainRoute()) mux.Handle("/static/", routes.Modules()) mux.Handle("/public/", routes.Public()) mux.Handle("/public/css/", routes.CSS()) mux.HandleFunc("/api/search", routes.Search) }
func handleRoutes(mux *mux.Mux) { mux.Handle("/", routes.MainRoute()) mux.Handle("/static/", routes.Modules()) mux.Handle("/public/", routes.Public()) mux.Handle("/public/css/", routes.CSS()) }