diff options
| author | Samuel Johnson <[email protected]> | 2025-11-24 13:53:18 -0500 |
|---|---|---|
| committer | Samuel Johnson <[email protected]> | 2025-11-24 13:53:18 -0500 |
| commit | 368a462bc744d8e9084eacfaddeb9afcaf7f7133 (patch) | |
| tree | c6e8f665d6cb9713b9226b10c4a341e60b8e91c2 /cmd/web/main.go | |
| parent | 4d4419f51557bef6b64dca8635ed61616d262a9b (diff) | |
Add session management
Diffstat (limited to 'cmd/web/main.go')
| -rw-r--r-- | cmd/web/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/web/main.go b/cmd/web/main.go index 42b672a..0b35ff2 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -14,6 +14,7 @@ import ( "paterissa.net/mblog/cmd/web/handlers" "paterissa.net/mblog/cmd/web/types" + "paterissa.net/mblog/internal" ) func main() { @@ -57,6 +58,8 @@ func main() { } defer db.Close() + internal.Migrate(db, os.Getenv("webmaster"), os.Getenv("blog_pass1"), os.Getenv("blog_pass2")) + router := handlers.RegisterEndpoints(app, db) srv := &http.Server{ Addr: fmt.Sprintf(":%d", app.Env.AppPort), |
