You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
prepare for complete rewrite
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/hacdias/filemanager"
|
||||
handlers "github.com/hacdias/filemanager/http"
|
||||
)
|
||||
|
||||
var cfg *filemanager.Config
|
||||
|
||||
func handler(w http.ResponseWriter, r *http.Request) {
|
||||
handlers.ServeHTTP(w, r, cfg)
|
||||
}
|
||||
|
||||
func main() {
|
||||
cfg = filemanager.New("D:\\TEST\\")
|
||||
|
||||
http.HandleFunc("/", handler)
|
||||
http.ListenAndServe(":8080", nil)
|
||||
}
|
||||
Reference in New Issue
Block a user