fbi-cde/crime-data-frontend

View on GitHub
src/util/api/footnote.js

Summary

Maintainability
A
0 mins
Test Coverage
import { get } from '../http'
import { API } from './constants'

// const getNationalFootnote = params => get(`${API}/footnotes/national`, params)
// const getRegionalFootnote = (regionName, params) => get(`${API}/footnotes/regions/${regionName}`, params)
// const getStateFootnote = (stateAbbr, params) => get(`${API}/footnotes/states/${stateAbbr}`, params)
const getAgencyFootnotes = (ori, offense) => get(`${API}/footnotes/agencies/${ori}/${offense}`)

export default {
  // getNationalFootnote,
  // getRegionalFootnote,
  // getStateFootnote,
  getAgencyFootnotes
}