Change default NIP-95 endpoint to void.cat as nostr.build returns 405
This commit is contained in:
parent
35d4a94bb4
commit
17aa64070e
@ -40,24 +40,31 @@ export const DEFAULT_RELAYS: RelayConfig[] = [
|
|||||||
|
|
||||||
export const DEFAULT_NIP95_APIS: Nip95Config[] = [
|
export const DEFAULT_NIP95_APIS: Nip95Config[] = [
|
||||||
{
|
{
|
||||||
id: 'default',
|
id: 'voidcat',
|
||||||
url: 'https://nostr.build/api/v2/upload',
|
url: 'https://void.cat/upload',
|
||||||
enabled: true,
|
enabled: true,
|
||||||
priority: 1,
|
priority: 1,
|
||||||
createdAt: Date.now(),
|
createdAt: Date.now(),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'nostrbuild',
|
||||||
|
url: 'https://nostr.build/api/v2/upload',
|
||||||
|
enabled: false,
|
||||||
|
priority: 2,
|
||||||
|
createdAt: Date.now(),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'picstr',
|
id: 'picstr',
|
||||||
url: 'https://picstr.build/api/v1/upload',
|
url: 'https://picstr.build/api/v1/upload',
|
||||||
enabled: false,
|
enabled: false,
|
||||||
priority: 2,
|
priority: 3,
|
||||||
createdAt: Date.now(),
|
createdAt: Date.now(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'nostrcheck',
|
id: 'nostrcheck',
|
||||||
url: 'https://nostrcheck.me/api/v1/media',
|
url: 'https://nostrcheck.me/api/v1/media',
|
||||||
enabled: false,
|
enabled: false,
|
||||||
priority: 3,
|
priority: 4,
|
||||||
createdAt: Date.now(),
|
createdAt: Date.now(),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@ -23,7 +23,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get target endpoint from query or use default
|
// Get target endpoint from query or use default
|
||||||
const targetEndpoint = (req.query.endpoint as string) || 'https://nostr.build/api/v2/upload'
|
const targetEndpoint = (req.query.endpoint as string) || 'https://void.cat/upload'
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Parse multipart form data
|
// Parse multipart form data
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user