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")