Simple password-protected admin page for managing bookings #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
A minimal admin page at
/adminwhere the photographer can see upcoming bookings and confirm Venmo payments.Authentication
ADMIN_PASSWORD_HASH(bcrypt) inapi/.envPOST /api/admin/loginreturns a signed JWT (24hr expiry)/api/admin/*routes requireAuthorization: Bearer <token>Admin page (
src/admin.html)Served by nginx at
/admin— separate file from the main portfolio.Bookings table showing:
Filters: upcoming only | all | pending payment
API endpoints
GET /api/admin/bookings— list all bookings (newest first)PATCH /api/admin/bookings/:id— update status/payment_statusGET /api/admin/bookings/:id/contract— download signed PDFAcceptance
Superseded by #10 (Authentik OIDC) and #11 (full management dashboard). Closing.