netmaker/controllers/files.go

11 lines
238 B
Go
Raw Normal View History

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