Add hotel registration with email confirmation (nodemailer, confirm-email endpoint)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-17 17:30:07 +03:00
parent c06f4bf553
commit 152a8c0463
6 changed files with 259 additions and 5 deletions

View File

@@ -145,6 +145,16 @@ export const api = {
me: () =>
req<User>('GET', '/api/auth/me'),
register: (data: {
hotelName: string
address?: string
contact: string
email: string
phone?: string
password: string
}) =>
req<{ ok: boolean; message: string }>('POST', '/api/auth/register', data),
},
// ── Rooms ─────────────────────────────────────────────────────────────────