filebrowser/cmd/filemanager/main.go
Henrique Dias 475a07671d unexport baseURL and webDavURL
Former-commit-id: b93158b291
2017-06-25 13:09:49 +01:00

24 lines
351 B
Go

package main
import (
"log"
"net/http"
"github.com/hacdias/filemanager"
)
var m *filemanager.FileManager
func handler(w http.ResponseWriter, r *http.Request) {
_, err := m.ServeHTTP(w, r)
if err != nil {
log.Print(err)
}
}
func main() {
m = filemanager.New("D:\\TEST")
http.HandleFunc("/", handler)
http.ListenAndServe(":8080", nil)
}