diff options
| author | Alexander Kavon <hawk@alexkavon.com> | 2023-11-27 14:48:44 -0500 |
|---|---|---|
| committer | Alexander Kavon <hawk@alexkavon.com> | 2023-11-27 14:48:44 -0500 |
| commit | 1d05f918887e9ba4576149513e5df0bb57e6bd72 (patch) | |
| tree | 2f5e94e21f90183509fe1ae52905c47d67a3c5d0 /src/main.go | |
| parent | 8a30281eff35623d1a68642e4d94c814d1b47a0c (diff) | |
config updates, rename user model, load auth routes, initial templating poc
Diffstat (limited to 'src/main.go')
| -rw-r--r-- | src/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.go b/src/main.go index 354d1ec..fe6a51a 100644 --- a/src/main.go +++ b/src/main.go @@ -1,6 +1,7 @@ package main import ( + "gitlab.com/alexkavon/newsstand/src/auth" "gitlab.com/alexkavon/newsstand/src/conf" "gitlab.com/alexkavon/newsstand/src/db" "gitlab.com/alexkavon/newsstand/src/server" @@ -12,5 +13,9 @@ func main() { // connect database // start server s := server.NewServer(config, server.NewRouter(config), db.NewDb(config)) + for _, route := range auth.Routes { + s.Router. + Method(route.Method, route.Pattern, route.HandlerFunc(s)) + } s.Serve() } |
