From fdbb2fc2ad45be98a7f79b9522b7e0c871d5c170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=9C=E8=8F=AF?= Date: Sun, 18 Jun 2023 12:42:59 +0800 Subject: [PATCH] dist --- .gitignore | 2 +- main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f93f1cc..44a6996 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Go -data +data/ # ---> Python # Byte-compiled / optimized / DLL files diff --git a/main.go b/main.go index 49d36e5..5dd3a0e 100644 --- a/main.go +++ b/main.go @@ -34,8 +34,8 @@ func main() { }) }) - // 設定靜態資源 (前端) 位于public目录下 - r.PathPrefix("/").Handler(http.FileServer(http.Dir("./public/"))) + // 設定靜態資源 (前端) 位于dist目录下 + r.PathPrefix("/").Handler(http.FileServer(http.Dir("./dist/"))) // 設定路由 r.HandleFunc("/api", routers.GetDocs).Methods("GET")