text: import BaseAPI from '../baseApi';
  import axios from '../../plugins/axios';
  
  class TextAPI extends BaseAPI {
    constructor() {
      super('writing/texts');
    }
  
    create(item, originalId) {
      return axios.post(`${this.endpoint}${originalId ? '?copy=' + originalId : ''}`, item);
    }
  }
  
  export default new TextAPI();
  