fbi-cde/crime-data-frontend

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

Summary

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

const getRegions = () => get(`${API}/regions`)
const getStates = params => get(`${API}/states`, params)
// this is the same call that is in ./agencies but here for convenience
const getAgencies = params => get(`${API}/agencies`, params)

export default {
  getRegions,
  getStates,
  getAgencies
}