aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-06 20:14:07 -0800
committerAdam Soltys <[email protected]>2026-03-06 20:14:07 -0800
commitbe75abbef81e0081d4825e6039aaf51a2407a06d (patch)
tree8c4f2e382f7a35946f7efe86f16d9c3a475f3892 /routes
parent13c8faa65dc75a14a6eb6b4dc8cfc677c3cb5c47 (diff)
downloadcoinos-server-be75abbef81e0081d4825e6039aaf51a2407a06d.tar.gz
coinos-server-be75abbef81e0081d4825e6039aaf51a2407a06d.zip
profile search
Diffstat (limited to 'routes')
-rw-r--r--routes/nostr.ts9
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");