From bfa29cc6d451b80cb8d1cf550e973c7c16413a62 Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Thu, 21 Jun 2018 15:08:29 -0400 Subject: [PATCH] delete file --- blockExplorerApi/app.go | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 blockExplorerApi/app.go diff --git a/blockExplorerApi/app.go b/blockExplorerApi/app.go deleted file mode 100644 index 9047b1d3aa..0000000000 --- a/blockExplorerApi/app.go +++ /dev/null @@ -1,18 +0,0 @@ -package main - -//@NOTE SHYFT main func for api, sets up router and spins up a server -//to run server 'go run blockExplorerApi/*.go' -import ( - "log" - "net/http" - - "github.com/gorilla/handlers" -) - -func main() { - - router := NewRouter() - port := "8080" - log.Printf("Listening on port " + " " + port) - log.Fatal(http.ListenAndServe(":"+port, handlers.CORS(handlers.AllowedHeaders([]string{"X-Requested-With", "Content-Type", "Authorization"}), handlers.AllowedMethods([]string{"GET", "POST", "PUT", "HEAD", "OPTIONS"}), handlers.AllowedOrigins([]string{"*"}))(router))) -}