fix(uploaderMiddleware): catch 'nostr.build' case

This commit is contained in:
P. Reis 2024-09-05 10:58:01 -03:00
parent 3fa97c0533
commit 4b06baf95b

View file

@ -34,6 +34,7 @@ export const uploaderMiddleware: AppMiddleware = async (c, next) => {
case 'local':
c.set('uploader', new DenoUploader({ baseUrl: Conf.mediaDomain, dir: Conf.uploadsDir }));
break;
case 'nostr.build':
case 'nostrbuild':
c.set('uploader', new NostrBuildUploader({ endpoint: Conf.nostrbuildEndpoint, signer, fetch: fetchWorker }));
break;