diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/nostr.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/routes/nostr.ts b/routes/nostr.ts index 8e189f3d..995fd7f9 100644 --- a/routes/nostr.ts +++ b/routes/nostr.ts @@ -1,5 +1,6 @@ import { db, g } from "$lib/db"; import ln from "$lib/ln"; +import { getMlsUsers } from "$lib/mls"; import { EX, get, @@ -20,6 +21,14 @@ import { decode } from "nostr-tools/nip19"; import { getZapEndpoint, makeZapRequest } from "nostr-tools/nip57"; export default { + async mlsUsers(c) { + try { + return c.json(await getMlsUsers()); + } catch (e) { + return bail(c, e.message); + } + }, + async event(c) { try { let id = c.req.param("id"); |
