mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
delete file
This commit is contained in:
parent
abcc686b9b
commit
bfa29cc6d4
1 changed files with 0 additions and 18 deletions
|
|
@ -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)))
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue