1
0
Fork 0

Oh, remove this test code.

This commit is contained in:
Alexander Andreev 2023-06-13 00:08:12 +04:00
parent 8038a0d551
commit cc8634fdb5
Signed by: Arav
GPG Key ID: D22A817D95815393
1 changed files with 0 additions and 4 deletions

View File

@ -52,10 +52,6 @@ func main() {
hand := dwhttp.New(directoryPath, !*enableFileHandler)
r := httpr.New()
r.NotFoundHandler = func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "lololol")
}
r.ServeStatic("/assets/*filepath", web.Assets())
r.Handler(http.MethodGet, "/file/*filepath", hand.File)
r.Handler(http.MethodGet, "/*filepath", hand.Index)