Skip to content

Instantly share code, notes, and snippets.

@PierreCavalet
Created May 5, 2020 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierreCavalet/0b62805009cd8ce83e06d81bbca3b265 to your computer and use it in GitHub Desktop.
Save PierreCavalet/0b62805009cd8ce83e06d81bbca3b265 to your computer and use it in GitHub Desktop.
plugins
const axios = require('axios')
module.exports = (on, config) => {
on('task', {
getCode() {
return axios
.get('https://us-central1-random-d85ea.cloudfunctions.net/codeWorkshop')
.then((response) => response.data.code)
},
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment