From cc1128c24cd4ca3b709a7506743948c9d5f24883 Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 17 Mar 2020 02:21:49 +1100 Subject: [PATCH] using production config --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index b245985..f6d07c6 100644 --- a/main.go +++ b/main.go @@ -9,8 +9,8 @@ import ( ) func main() { - //readConfig() - readConfigForTest() + readConfig() + //readConfigForTest() db.h = nil //make sure it's in proper state. filename := "rpn.superforex." + time.Now().Format("20060102150406") + ".log" @@ -23,10 +23,10 @@ func main() { log.Println("Server started on: http://localhost:8080") //setup http handler - http.HandleFunc("/choosePayment", choosePayment) - http.HandleFunc("/rpnNameAndCard", rpnNameAndCard) - http.HandleFunc("/rpn_notify", rpnNotify) //called by rpn - fs := wrapHandler(http.FileServer(http.Dir("./PG"))) + http.HandleFunc("/rpnNameAndCard", rpnNameAndCard) //ask name and card no + http.HandleFunc("/rpn_notify", rpnNotify) //called by rpn + http.HandleFunc("/alipay", leanworkInFAT) // leanwork in + fs := wrapHandler(http.FileServer(http.Dir("./PG"))) //leanwork P2P embeded in http.HandleFunc("/", fs) http.ListenAndServe(":8080", nil)