Add an /api/authcheck and use it to toggle logout/login link on top header.

This commit is contained in:
Zed A. Shaw 2025-09-17 11:33:22 -04:00
parent c2123ff741
commit fcb71add03
3 changed files with 15 additions and 2 deletions

View file

@ -97,6 +97,7 @@ func Setup(app *fiber.App) {
app.Post("/api/link", PostApiLink)
// api/auth.go
app.Get("/api/authcheck", GetApiAuthCheck)
app.Get("/api/logout", GetApiLogout)
app.Post("/api/register", PostApiRegister)
app.Post("/api/login", PostApiLogin)