mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-04 23:40:24 +08:00
v0.1.1
This commit is contained in:
3
main.go
3
main.go
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/fumiama/paper-manager/backend"
|
||||
"github.com/fumiama/paper-manager/frontend"
|
||||
)
|
||||
|
||||
func line() int {
|
||||
@@ -33,7 +34,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))
|
||||
|
||||
Reference in New Issue
Block a user