Skip to content

Commit

Permalink
Add JSDocs to ContactUs
Browse files Browse the repository at this point in the history
  • Loading branch information
sonufrienko committed Nov 6, 2019
1 parent 2a6ad82 commit 547af7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/contact-us.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
import { WRIAPI } from 'utils/axios';
import { logger } from 'utils/logs';

/**
* Sends a contact form including a topic, email address, and a message.
* Check out the API docs for this endpoint {@link https://resource-watch.github.io/doc-api/index-rw.html#contact-us|here}
* @param {Object} params Request paremeters to API.
* @returns {Promise}
*/
export const contactUs = (params) => {
logger.info('Contact us');
return WRIAPI.post('contact-us', params)
Expand Down

0 comments on commit 547af7f

Please sign in to comment.