forked from pathaugen/BoomCase
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.go
42 lines (28 loc) · 1.3 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package main
import (
// oldAppengine "appengine"
"google.golang.org/appengine"
"fmt"
"net/http"
)
// ========== START: GAE config handlers for URIs ========== ========== ========== ========== ========== ========== ========== ========== ==========
// GAE config handlers for URIs
func init() {
http.HandleFunc("/savecasedriver", handlerSaveCaseDriver)
http.HandleFunc("/saveimage", handlerSaveImage)
http.HandleFunc("/sendemail", handlerSendEmail)
http.HandleFunc("/serve/", handlerServe)
http.HandleFunc("/login", handlerLogin)
// API Versions
http.HandleFunc("/api/1.0/", handlerAPI10) // API version 1.0
http.HandleFunc("/", handlerRoot)
}
// if true, running in production environment
// os.getenv('SERVER_SOFTWARE', '').startswith('Google App Engine/')
// ========== END: GAE config handlers for URIs ========== ========== ========== ========== ========== ========== ========== ========== ==========
// main() used for executable when running after build, and also required for Travis CI
func main() {
appengine.Main()
fmt.Println("ThumpCase Google App Engine Application. Deploy code to Google App Engine (GAE) to utilize. No command line functions available.")
// TODO: Creation of offline BoomCase customization web server application for POS kiosks utilizing same code
}