mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Compare commits
2 commits
51642db93e
...
d79292c8f6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d79292c8f6 | ||
|
|
760fb1bb43 |
1 changed files with 14 additions and 6 deletions
|
|
@ -151,12 +151,20 @@ route.post('/mint/:quote_id', userMiddleware({ enc: 'nip44' }), async (c) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const createWalletSchema = z.object({
|
const createWalletSchema = z.object({
|
||||||
mints: z.array(z.string().url()).nonempty().transform((val) => {
|
mints: z.array(
|
||||||
return [...new Set(val)];
|
z.string().url()
|
||||||
}),
|
.transform((url) => new URL(url).href),
|
||||||
relays: z.array(z.string().url()).transform((val) => {
|
).nonempty()
|
||||||
return [...new Set(val)];
|
.transform((val) => {
|
||||||
}),
|
return [...new Set(val)];
|
||||||
|
}),
|
||||||
|
relays: z.array(
|
||||||
|
z.string().url()
|
||||||
|
.transform((url) => new URL(url).href),
|
||||||
|
)
|
||||||
|
.transform((val) => {
|
||||||
|
return [...new Set(val)];
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue