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:
@@ -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 ─────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user