Auth Pages
Static auth pages are generated into site/public/ and provide the full user authentication flow.
Pages
| Page | Path | Description |
|---|---|---|
| Login | /login/ | Email + password form |
| Register | /register/ | New account form |
| Account | /conta/ | User dashboard (protected) |
| My Listings | /conta/imoveis/ | Manage property listings |
| New Listing | /conta/imoveis/novo/ | Create a new listing |
| Edit Listing | /conta/imoveis/editar/ | Edit an existing listing |
| Subscription | /conta/assinatura/ | Manage subscription plan |
| Subscription Success | /conta/assinatura/sucesso/ | Post-checkout success |
| Subscription Cancel | /conta/assinatura/cancelar/ | Cancelled checkout |
Build Auth Pages
Auth pages are built alongside all single pages:
cd site && go run . build-page singleDeploy Auth Pages
Auth pages are deployed as part of the single-page group. The explicit way to push them is:
cd site./deploy-single.shOr manually:
cd sitego run . build-page singlego run . smart-deploy --singleSee Single Page Deploys for more details.
Protection
While the pages are static HTML, protected routes use client-side JavaScript to check auth status:
- Page loads
- JavaScript calls
GET /api/auth/me - If 401, redirect to
/login/ - If 200, render user-specific content
This is a “soft” protection — the HTML is public, but user data is only shown to authenticated users.