netmaker/controllers/fileHttpController.go

12 lines
245 B
Go
Raw Normal View History

2021-03-26 00:17:52 +08:00
package controller
import (
"net/http"
"github.com/gorilla/mux"
)
func fileHandlers(r *mux.Router) {
r.PathPrefix("/meshclient/files").Handler(http.StripPrefix("/meshclient/files", http.FileServer(http.Dir("./meshclient/files"))))
}