Page MenuHomePhabricator

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

Authored by inka on Tue, May 14, 5:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 14, 9:17 AM
Unknown Object (File)
Tue, May 14, 9:17 AM
Unknown Object (File)
Tue, May 14, 9:17 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