Created
May 5, 2020 14:26
-
-
Save PierreCavalet/0b62805009cd8ce83e06d81bbca3b265 to your computer and use it in GitHub Desktop.
plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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