/*****************************************************************************
* Corpora                                                                    *
* Fetch requests for /corpora/<entity>/files routes                          *
*****************************************************************************/
Requests.corpora.entity.files = {};

Requests.corpora.entity.files.ent = {};

Requests.corpora.entity.files.ent.delete = (corpusId, corpusFileId) => {
  let input = `/corpora/${corpusId}/files/${corpusFileId}`;
  let init = {
    method: 'DELETE',
  };
  return Requests.JSONfetch(input, init);
};
