Page MenuHomePhabricator

[lib][keyserver] Move upload output validators to lib
ClosedPublic

Authored by inka on May 14 2024, 5:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 30, 9:17 AM
Unknown Object (File)
Thu, Aug 29, 5:22 AM
Unknown Object (File)
Thu, Aug 15, 2:22 PM
Unknown Object (File)
Aug 1 2024, 12:17 AM
Unknown Object (File)
Aug 1 2024, 12:17 AM
Unknown Object (File)
Aug 1 2024, 12:16 AM
Unknown Object (File)
Aug 1 2024, 12:16 AM
Unknown Object (File)
Jul 15 2024, 10:10 PM
Subscribers

Details

Summary

upload_multimedia is listed in lib as an endpoint. We don't have an endpoint for it in the endpoint.js on the keyserver, but we have code that adds a handler

keyserverRouter.post(
  '/upload_multimedia',
  multerProcessor,
  uploadHandler(multimediaUploadResponder),
);

I am moving this validator as well so that I can type something on lib corrreclty in later diffs - I will need to be able to list validators for all endpoints as specifiec on lib, so including upload_multimedia

Test Plan

flow, checked that mulimedia upload works

Diff Detail

Repository
rCOMM Comm
Branch
inka/userStore
Lint
No Lint Coverage
Unit
No Test Coverage