HomePhabricator
Diffusion Comm c4417a4b0009

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

Description

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

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

Reviewers: tomek, kamil, bartek

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D12029

Details

Provenance
inkaAuthored on May 14 2024, 2:17 AM
Reviewer
tomek
Differential Revision
D12029: [lib][keyserver] Move upload output validators to lib
Parents
rCOMM1a2b808c4a37: [lib] Remove request_access
Branches
Unknown
Tags
Unknown