bcgov/nr-get-token

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

Summary

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

export default {
  /**
   * @function sendRegistrationEmail
   * Sends an application registration request email
   * @param {object} content An object with applicationAcronym, comments, from and idir attributes
   * @returns {Promise} An axios response
   */
  sendRegistrationEmail(content) {
    return getokAxios().post(ApiRoutes.EMAIL, content);
  }
};