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)
Wed, Oct 2, 4:58 PM
Unknown Object (File)
Wed, Oct 2, 4:58 PM
Unknown Object (File)
Wed, Oct 2, 4:58 PM
Unknown Object (File)
Wed, Oct 2, 4:58 PM
Unknown Object (File)
Sat, Sep 21, 4:30 AM
Unknown Object (File)
Sep 16 2024, 1:08 PM
Unknown Object (File)
Sep 9 2024, 3:54 PM
Unknown Object (File)
Sep 7 2024, 7:13 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