bcgov/nr-get-token

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

Summary

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

export default {
  /**
   * @function getTestResponse
   * Fetch the contents of `path` as the current user
   * @param {string} path A string representing the relative path endpoint
   * @returns {Promise} An axios response
   */
  getTestResponse(path) {
    return getokAxios().get(path);
  }
};