1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-10 10:50:23 +08:00

fix user tmpfile permission

This commit is contained in:
源文雨
2023-05-10 00:34:02 +08:00
parent 125b47e5f7
commit 9c9b6e4eae
5 changed files with 6 additions and 15 deletions

View File

@@ -10,7 +10,6 @@ import (
"github.com/sirupsen/logrus"
"github.com/fumiama/paper-manager/backend"
"github.com/fumiama/paper-manager/frontend"
)
func line() int {
@@ -34,7 +33,7 @@ func main() {
http.HandleFunc("/file/", backend.FileHandler)
http.HandleFunc("/paper/", backend.PaperHandler)
http.HandleFunc("/upload", backend.UploadHandler)
http.Handle("/", frontend.StaticHandler)
//http.Handle("/", frontend.StaticHandler)
logrus.Infoln("[http.Serve] start at", l.Addr())
logrus.Errorln("[http.Serve]", http.Serve(l, nil))