fileHttpController.go 245 B

1234567891011
  1. package controller
  2. import (
  3. "net/http"
  4. "github.com/gorilla/mux"
  5. )
  6. func fileHandlers(r *mux.Router) {
  7. r.PathPrefix("/meshclient/files").Handler(http.StripPrefix("/meshclient/files", http.FileServer(http.Dir("./meshclient/files"))))
  8. }