import express from 'express'; import { listAccounts } from './db.js'; const app = express(); const port = process.env.PORT || 3210; app.get('/', async (req, res) => { const rows = await listAccounts(); res.setHeader('Content-Type', 'text/html; charset=utf-8'); res.end(`
| Password | Status | Created | Expires | |
|---|---|---|---|---|
| ${r.email} | ${r.password} | ${r.status} | ${fmt(r.created_at)} | ${fmt(r.expires_at)} |