fix api endpoints for storage upload/download

Is there a better way to do this?