diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-11 17:52:29 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-11 17:52:29 -0600 |
| commit | ff15873b766f5be308c9967859bfeb7da7cfa21a (patch) | |
| tree | 5a3799dda610dc6fd7bda3adeab931fb60e986a0 /cmd/sparkled/main.go | |
| parent | 6d525bb541230c707a160ef670449b7588abf43b (diff) | |
refactor: split routes to separate controller files
Diffstat (limited to 'cmd/sparkled/main.go')
| -rw-r--r-- | cmd/sparkled/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/sparkled/main.go b/cmd/sparkled/main.go index 416cc9b..6235ada 100644 --- a/cmd/sparkled/main.go +++ b/cmd/sparkled/main.go @@ -5,6 +5,7 @@ import ( "net/http" "github.com/xlgmokha/x/pkg/env" + "gitlab.com/mokhax/sparkled/pkg/db" "gitlab.com/mokhax/sparkled/pkg/web" ) @@ -14,6 +15,6 @@ func main() { log.Fatal(http.ListenAndServe( bindAddr, - web.NewServer(nil), + web.New(db.NewRepository()), )) } |
