functions: 0.0.28 release

This commit is contained in:
Travis Reeder
2016-07-17 21:49:25 -07:00
parent a20ad9f4e1
commit c5abab9f15
3 changed files with 13 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ func (r *NewApp) ServeHTTP(w http.ResponseWriter, req *http.Request) {
return
}
log.Infoln("registered app:", app)
v := map[string]interface{}{"app": app}
v := map[string]interface{}{"app": app, "msg": "App created successfully."}
SendSuccess(w, "App created successfully.", v)
}
@@ -140,7 +140,8 @@ func NewRoute(w http.ResponseWriter, req *http.Request) {
return
}
log.Infoln("Route created:", route)
fmt.Fprintln(w, "Route created successfully.")
v := map[string]interface{}{"url": fmt.Sprintf("http://%v%v", app.Dns, route.Path), "msg": "Route created successfully."}
SendSuccess(w, "Route created successfully.", v)
}
func getRoute(host string) (*Route, error) {

View File

@@ -1,3 +1,3 @@
package api
const Version = "0.0.27"
const Version = "0.0.28"