aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-09 12:22:31 -0700
committerjackyzha0 <[email protected]>2020-05-09 12:22:31 -0700
commit043e347703b780781bb2a16946299ff493215c76 (patch)
treecc2f152de2b22c7bf7542b12d6ce3035412abdf2 /main.go
parentinitial files (diff)
downloadctrl-v-043e347703b780781bb2a16946299ff493215c76.tar.xz
ctrl-v-043e347703b780781bb2a16946299ff493215c76.zip
healthcheck + basic api
Diffstat (limited to 'main.go')
-rw-r--r--main.go17
1 files changed, 3 insertions, 14 deletions
diff --git a/main.go b/main.go
index 0f9b7dd..b0dbaaa 100644
--- a/main.go
+++ b/main.go
@@ -1,21 +1,10 @@
package main
import (
- "log"
- "os"
-
- "github.com/joho/godotenv"
+ "github.com/jackyzha0/ctrl-v/api"
+ _ "github.com/jackyzha0/ctrl-v/db" // setup db
)
func main() {
-
- // load .env file
- err := godotenv.Load()
- if err != nil {
- log.Fatal("Error loading .env file")
- }
-
- mUser := os.Getenv("MONGO_USER")
- mPass := os.Getenv("MONGO_PASS")
-
+ api.Serve(8080)
}