mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-10 09:52:51 +00:00
25 lines
362 B
Go
25 lines
362 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
//local import paths relative to app.yaml file
|
|
"server/controller/api"
|
|
"server/db"
|
|
"server/route"
|
|
"server/utils"
|
|
)
|
|
|
|
func init() {
|
|
configurations := utils.ReadConfig()
|
|
|
|
db.Configure(configurations.Database)
|
|
api.Configure(configurations.Api)
|
|
|
|
db.Mongo.Connect()
|
|
|
|
router := route.Routes()
|
|
|
|
http.Handle("/", router)
|
|
}
|