diff --git a/manager.js b/manager.js new file mode 100644 index 0000000..4a5c1ff --- /dev/null +++ b/manager.js @@ -0,0 +1,19 @@ +const axios = require('axios'); +const watcher = require('./watcher'); +require('dotenv').config(); + +/** + * This file will be responsible for managing the watcher + * as well as ensuring the credentials are avaiable + * */ + +axios({ + method: 'GET', + url: 'http://localhost:3000/credentials' +}).then(res => { + console.log(res.data); +}); + +const projectID = "a.YnVzaW5lc3M6cHVyZHVlMjY5NiMyMDIxMTEwODQ2NDQzMzk3Ng"; +console.log(process.env.CREDENTIALS); +// setInterval(() => watcher.watch(projectID, 'urn:adsk.wipprod:fs.folder:co.ltuYad4ZTtieJLm6j3MGuA', ), 5000) \ No newline at end of file