ReviewOS

also looking at this

mail-os/mail

feat: mailbox recovery addresses and password reset by email

#13
Merged chris wants to merge feat/mailbox-recovery into main
21 files +1503 -10
packages/webmail/server.tsmodified+1-1
Changes to packages/webmail/server.ts
@@ -21,7 +21,7 @@ async function main(): Promise<void> {
2121 }
2222 catch { return Response.json({ message: 'Mail API is unavailable.' }, { status: 502 }) }
2323 }
24 const assets: Record<string, string> = { '/': 'index.html', '/login': 'login.html', '/styles.css': 'styles.css' }
24 const assets: Record<string, string> = { '/': 'index.html', '/login': 'login.html', '/forgot': 'recover.html', '/reset': 'recover.html', '/styles.css': 'styles.css' }
2525 const file = assets[url.pathname]
2626 return file ? new Response(Bun.file(`${dist}/${file}`)) : new Response('Not found', { status: 404 })
2727 },