aboutsummaryrefslogtreecommitdiff
path: root/src/main.go
diff options
context:
space:
mode:
authorAlexander Kavon <hawk@alexkavon.com>2023-11-14 13:16:06 -0500
committerAlexander Kavon <hawk@alexkavon.com>2023-11-14 13:16:06 -0500
commit2bb987d570b92a3d86f154fe53f36f953a69cc91 (patch)
tree446283163b9c9ba9fe14ba8303008f74b3304389 /src/main.go
parent60f4a3e21f186d7bbc6e1f3239dc2dc06fa1ffac (diff)
router types; pass config, routes, db to server type, serve func
Diffstat (limited to 'src/main.go')
-rw-r--r--src/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.go b/src/main.go
index bdfb610..fa70724 100644
--- a/src/main.go
+++ b/src/main.go
@@ -7,8 +7,9 @@ import (
func main() {
// load config
- conf.Load()
+ config := conf.NewConf()
// connect database
// start server
- server.Start()
+ s := server.NewServer(config, server.NewRouter(config), db.NewDatabase(config))
+ s.Serve()
}