mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 17:29:15 +08:00
first commit
This commit is contained in:
11
controllers/fileHttpController.go
Normal file
11
controllers/fileHttpController.go
Normal file
@@ -0,0 +1,11 @@
|
||||
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"))))
|
||||
}
|
Reference in New Issue
Block a user