auth0-extensions/auth0-sso-dashboard-extension

View on GitHub
client/actions/status.js

Summary

Maintainability
A
50 mins
Test Coverage
import axios from 'axios';

import * as constants from '../constants';

export function fetchStatus() { // eslint-disable-line import/prefer-default-export
  return {
    type: constants.FETCH_STATUS,
    payload: {
      promise: axios.get('/api/status', {
        responseType: 'json'
      })
    }
  };
}