Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import axios from 'axios';
import humps from 'humps';
async function get(url) {
try {
const response = await axios.get(url);
return humps.camelizeKeys(;
} catch ({ response }) {
return {
status: response.status,
error: humps.camelizeKeys(,
const httpRequest = {
export default httpRequest;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment