Oh, remove this test code.
This commit is contained in:
parent
8038a0d551
commit
cc8634fdb5
@ -52,10 +52,6 @@ func main() {
|
|||||||
hand := dwhttp.New(directoryPath, !*enableFileHandler)
|
hand := dwhttp.New(directoryPath, !*enableFileHandler)
|
||||||
r := httpr.New()
|
r := httpr.New()
|
||||||
|
|
||||||
r.NotFoundHandler = func(w http.ResponseWriter, r *http.Request) {
|
|
||||||
fmt.Fprint(w, "lololol")
|
|
||||||
}
|
|
||||||
|
|
||||||
r.ServeStatic("/assets/*filepath", web.Assets())
|
r.ServeStatic("/assets/*filepath", web.Assets())
|
||||||
r.Handler(http.MethodGet, "/file/*filepath", hand.File)
|
r.Handler(http.MethodGet, "/file/*filepath", hand.File)
|
||||||
r.Handler(http.MethodGet, "/*filepath", hand.Index)
|
r.Handler(http.MethodGet, "/*filepath", hand.Index)
|
||||||
|
Loading…
Reference in New Issue
Block a user