summaryrefslogtreecommitdiff
path: root/cmd/sparkled
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-11 17:52:29 -0600
committermo khan <mo@mokhan.ca>2025-04-11 17:52:29 -0600
commitff15873b766f5be308c9967859bfeb7da7cfa21a (patch)
tree5a3799dda610dc6fd7bda3adeab931fb60e986a0 /cmd/sparkled
parent6d525bb541230c707a160ef670449b7588abf43b (diff)
refactor: split routes to separate controller files
Diffstat (limited to 'cmd/sparkled')
-rw-r--r--cmd/sparkled/main.go3
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()),
))
}