files.go 238 B

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