SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/loans/new/request/resources.js

Summary

Maintainability
A
0 mins
Test Coverage
import ajaxCall from '@/helpers/ajaxCall'

const batchRemoveKeyword = function (id, type) {
  return ajaxCall('post', `/tags/batch_remove?keyword_id=${id}&klass=${type}`)
}

const createBatchLoad = function (params) {
  return ajaxCall('post', '/loan_items/batch_create', params)
}

const getTagMetadata = function (id) {
  return ajaxCall('get', '/tasks/loans/edit_loan/loan_item_metadata')
}

export { batchRemoveKeyword, createBatchLoad, getTagMetadata }