1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-23 12:00:35 +08:00
This commit is contained in:
源文雨
2023-05-04 23:10:54 +08:00
parent ad46584760
commit d727f5c827
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "paper-manager", "name": "paper-manager",
"version": "0.0.1", "version": "0.1.0",
"author": { "author": {
"name": "fumiama", "name": "fumiama",
"email": "fumiama@foxmail.com", "email": "fumiama@foxmail.com",

View File

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