dist
This commit is contained in:
4
main.go
4
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")
|
||||
|
Reference in New Issue
Block a user