bcgov/nr-get-token

View on GitHub
app/frontend/src/services/healthService.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { getokAxios } from '@/services/interceptors';
import { ApiRoutes } from '@/utils/constants';

export default {
  /**
   * @function getHealthCheck
   * Fetch the health statuses of associated endpoints
   * @returns {Promise} An axios response
   */
  getHealthCheck() {
    return getokAxios().get(ApiRoutes.HEALTH);
  }
};