Skip to content

Commit

Permalink
update with new packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hellojebus committed Jun 8, 2018
1 parent e4f7fdf commit a5e849d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"os"
"log"
"net/http"
"github.com/hellojebus/go-envoz-api/db"
)

func main(){
Expand All @@ -13,8 +14,8 @@ func main(){
router := NewRouter()

//Setup database
DB = SetupDB()
defer DB.Close()
db.DB = db.SetupDB()
defer db.DB.Close()

//create http server
log.Fatal(http.ListenAndServe(":"+port, router))
Expand Down

0 comments on commit a5e849d

Please sign in to comment.