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

优化后端文件组织架构

This commit is contained in:
源文雨
2023-03-19 00:03:07 +08:00
parent 7d977cea0d
commit b795564785
7 changed files with 10 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/fumiama/paper-manager/backend/api"
"github.com/fumiama/paper-manager/backend"
)
func line() int {
@@ -29,9 +29,9 @@ func main() {
os.Exit(line())
}
http.HandleFunc("/api/", api.Handler)
http.HandleFunc("/file/", api.FileHandler)
http.HandleFunc("/upload", api.UploadHandler)
http.HandleFunc("/api/", backend.Handler)
http.HandleFunc("/file/", backend.FileHandler)
http.HandleFunc("/upload", backend.UploadHandler)
logrus.Infoln("[http.Serve] start at", l.Addr())
logrus.Errorln("[http.Serve]", http.Serve(l, nil))