mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
moved server to separate repo
This commit is contained in:
24
server.go
24
server.go
@@ -1,24 +0,0 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user