|
|
|
@@ -21,14 +21,11 @@ func main() { |
|
|
|
|
|
|
|
//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)) |
|
|
|
http.Handle("/", fs) |
|
|
|
//setup handler |
|
|
|
//http.HandleFunc("/", webrootHandler) |
|
|
|
//http.HandleFunc("/api", apiV1Main) |
|
|
|
http.HandleFunc("/api", uploadHandler) |
|
|
|
//http.ListenAndServe("127.0.0.1:65500", nil) |
|
|
|
//CreateDefaultMenu() |
|
|
|
http.HandleFunc("/api", apiV1Main) |
|
|
|
http.HandleFunc("/upload", uploadHandler) |
|
|
|
http.ListenAndServe(":65500", nil) |
|
|
|
} |