Replace FN_ROUTE with FN_PATH

This commit is contained in:
Travis Reeder
2017-09-20 11:35:18 -07:00
parent cdb74915de
commit 904f288ed6
6 changed files with 10 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ import (
var noAuth = map[string]interface{}{}
func main() {
request := fmt.Sprintf("%s %s", os.Getenv("FN_METHOD"), os.Getenv("FN_ROUTE"))
request := fmt.Sprintf("%s %s", os.Getenv("FN_METHOD"), os.Getenv("FN_PATH"))
dbURI := os.Getenv("DB")
if dbURI == "" {
@@ -36,7 +36,7 @@ func main() {
}
// GETTING TOKEN
if os.Getenv("FN_ROUTE") == "/token" {
if os.Getenv("FN_PATH") == "/token" {
route.HandleToken(db)
return
}