Skip to content

Commit 98e497b

Browse files
committed
【优化修复】原生文件服务器路由改为/file/
1 parent a6ca702 commit 98e497b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func main() {
1414
flag.Parse()
1515

1616
http.HandleFunc("/", fileServer.ShowRouterS)
17-
http.Handle("/SimpleDownload/", http.StripPrefix("/SimpleDownload/", http.FileServer(http.Dir(fileServer.BASE_PATH))))
17+
http.Handle("/file/", http.StripPrefix("/file/", http.FileServer(http.Dir(fileServer.BASE_PATH))))
1818

1919
http.HandleFunc("/download", fileServer.Download)
2020
http.HandleFunc("/upload", fileServer.Upload)

0 commit comments

Comments
 (0)