|
|
|
|
|
|
|
|
func main() { |
|
|
func main() { |
|
|
//readConfig() |
|
|
//readConfig() |
|
|
readConfigForTest() |
|
|
readConfigForTest() |
|
|
http.HandleFunc("/", StartPay) |
|
|
|
|
|
|
|
|
|
|
|
http.HandleFunc("/choosePayment", choosePayment) |
|
|
http.HandleFunc("/choosePayment", choosePayment) |
|
|
http.HandleFunc("/rpnNameAndCard", rpnNameAndCard) |
|
|
http.HandleFunc("/rpnNameAndCard", rpnNameAndCard) |
|
|
// http.HandleFunc("/", Index) |
|
|
// http.HandleFunc("/", Index) |
|
|
|
|
|
|
|
|
// http.HandleFunc("/insert", Insert) |
|
|
// http.HandleFunc("/insert", Insert) |
|
|
// http.HandleFunc("/update", Update) |
|
|
// http.HandleFunc("/update", Update) |
|
|
// http.HandleFunc("/delete", Delete) |
|
|
// http.HandleFunc("/delete", Delete) |
|
|
|
|
|
fs := wrapHandler(http.FileServer(http.Dir("./PG"))) |
|
|
|
|
|
http.HandleFunc("/", fs) |
|
|
http.ListenAndServe(":8080", nil) |
|
|
http.ListenAndServe(":8080", nil) |
|
|
log.Println("Server started on: http://localhost:8080") |
|
|
log.Println("Server started on: http://localhost:8080") |
|
|
} |
|
|
} |