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
F3127226: D12029.diff
Fri, Nov 1, 9:05 PM
Unknown Object (File)
Sat, Oct 26, 5:01 AM
Unknown Object (File)
Oct 2 2024, 4:58 PM
Unknown Object (File)
Oct 2 2024, 4:58 PM
Unknown Object (File)
Oct 2 2024, 4:58 PM
Unknown Object (File)
Oct 2 2024, 4:58 PM
Unknown Object (File)
Sep 21 2024, 4:30 AM
Unknown Object (File)
Sep 16 2024, 1:08 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable