diff options
Diffstat (limited to 'cmd/web/handlers/routes.go')
| -rw-r--r-- | cmd/web/handlers/routes.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/web/handlers/routes.go b/cmd/web/handlers/routes.go index 91c27a2..e9fd0f5 100644 --- a/cmd/web/handlers/routes.go +++ b/cmd/web/handlers/routes.go @@ -1,13 +1,16 @@ package handlers import ( + "database/sql" "net/http" + "paterissa.net/mblog/cmd/web/types" ) -func RegisterEndpoints(app types.Application) *http.ServeMux { +func RegisterEndpoints(app types.Application, db *sql.DB) *http.ServeMux { blog := blogContext{ err: app.Err, + db: db, Name: app.Env.Webmaster, } audio := fsContext{ |
