Input: Commit SHA (+ slug, token etc)
Output: presigned put url (the standard output from do-upload)
Suggestion:
- Extract the logic for each of the individual endpoints to a library/service.
- Call this logic in the individual endpoint.
- Create new endpoint that sequentially calls each piece.