fix api endpoints for storage upload/download