From d727f5c827956afbc7d31c69a475c1482ccfe744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 4 May 2023 23:10:54 +0800 Subject: [PATCH] v0.1.0 --- frontend/vben/package.json | 2 +- main.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/vben/package.json b/frontend/vben/package.json index 4aa8582..523ce6a 100644 --- a/frontend/vben/package.json +++ b/frontend/vben/package.json @@ -1,6 +1,6 @@ { "name": "paper-manager", - "version": "0.0.1", + "version": "0.1.0", "author": { "name": "fumiama", "email": "fumiama@foxmail.com", diff --git a/main.go b/main.go index 9aaf7d1..da0bde8 100644 --- a/main.go +++ b/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))