-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.go
More file actions
32 lines (24 loc) · 1.1 KB
/
main.go
File metadata and controls
32 lines (24 loc) · 1.1 KB
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
package main
import (
"fmt"
"net/http"
)
// ========== ========== ========== ========== ========== ========== ========== ========== ========== ==========
// GAE config handlers for URIs
func init() {
http.HandleFunc("/savecasedriver", handlerSaveCaseDriver)
http.HandleFunc("/saveimage", handlerSaveImage)
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/')
// ========== ========== ========== ========== ========== ========== ========== ========== ========== ==========
// main() used for executable when running after build, and also required for Travis CI
func main() {
fmt.Println("BoomCase 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
}