1
0
Fork 0
mirror of https://github.com/imjasonh/heroku-googlecloudsql synced 2026-07-06 22:42:20 +00:00

small changes

This commit is contained in:
Jason Hall 2014-02-02 15:17:56 -05:00
parent 55eb9c7737
commit 4d1180c20b

View file

@ -1,5 +1,4 @@
// TODO: Support setting regions
// TODO: Implement deprovision and plan change
package herokusql
@ -18,6 +17,7 @@ import (
)
const (
// TODO: Store password in datastore, look it up and cache it the first time it's needed by this GAE instance
password = "f1937226ef79503baddc427190207e5d"
projectName = "herokusql"
authScope = "https://www.googleapis.com/auth/sqlservice.admin"
@ -35,9 +35,9 @@ var tierMap = map[string]string{
// For testing
"test": "D0",
}
var r = mux.NewRouter()
func init() {
r := mux.NewRouter()
r.HandleFunc("/heroku/resources", provision).Methods("POST")
r.HandleFunc("/heroku/resources/{id}", deprovision).Methods("DELETE")
r.HandleFunc("/heroku/resources/{id}", changePlan).Methods("POST")