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
F3563194: D12029.id40157.diff
Fri, Dec 27, 11:57 AM
F3553329: D12029.diff
Thu, Dec 26, 8:35 PM
Unknown Object (File)
Mon, Dec 16, 6:04 PM
Unknown Object (File)
Mon, Dec 16, 6:04 PM
Unknown Object (File)
Mon, Dec 16, 6:04 PM
Unknown Object (File)
Mon, Dec 16, 6:04 PM
Unknown Object (File)
Nov 13 2024, 5:36 AM
Unknown Object (File)
Nov 3 2024, 5:35 AM
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