From c16de4bbaf8ef403bdf06f9a766e561c2d882dca Mon Sep 17 00:00:00 2001 From: wzj Date: Thu, 14 Nov 2024 21:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=9D=99=E6=80=81=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 2cbf422..ff50797 100644 --- a/main.go +++ b/main.go @@ -42,6 +42,9 @@ func main() { // And the wildcard one for index.html, *.js, *.css and e.t.c. app.Get("/swagger/{any:path}", swaggerUI) + // 将网站静态根目录设置为 ./public + app.HandleDir("/", "./public") + conf := config.LoadConfig() // init util