| @@ -11,6 +11,10 @@ func main() { | |||
| return | |||
| } | |||
| //fs := http.FileServer(http.Dir("/mnt/data/workspace/angular.ts/ng2-admin/dist")) | |||
| fs := http.FileServer(http.Dir("/mnt/data/workspace/angular.ts/wechat/ng2-admin/dist")) | |||
| http.Handle("/test/", http.StripPrefix("/test", fs)) | |||
| //setup handler | |||
| http.HandleFunc("/", webrootHandler) | |||
| http.HandleFunc("/api", apiV1Main) | |||