mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-14 10:18:41 +00:00
Update constants.
This commit is contained in:
1 parent
d10f2d91f6
commit
70c86de305
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
||||
const fetch = require('node-fetch');
|
||||
const getJSON = require('../utils/getJSON.js');
|
||||
const data = getJSON(process.env.FILES);
|
||||
const arrayRecordTypes["
|
||||
const arrayRecordTypes["a", "aaaa"];
|
||||
async function addRecord(type, name, value) {
|
||||
const response = await fetch(`https://api.is-a-good.dev/api/is-a-good-dev/zones/add?apiKey=${process.env.API_KEY}&type=${type}&name=${name}&content=${value}`);
|
||||
const data = await response.json();
|
||||
|
||||
Reference in new issue
Block a user