-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
54 lines (41 loc) · 1.48 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const getZone = require('./lib/zones/get')
const getNameservers = require('./lib/nameservers/get')
const updateNameservers = require('./lib/nameservers/update')
const listRecords = require('./lib/records/list')
const upsertRecords = require('./lib/records/upsert')
const deleteRecords = require('./lib/records/delete')
const deleteAllRecords = require('./lib/records/deleteAll')
const addRecord = require('./lib/records/add')
const createRedirect = require('./lib/redirects/create')
/*
for(let g in getNameservers){
if(!module.exports[g]) module.exports[g] = {}
module.exports[g].getNameservers = getNameservers[g]
}
for(let u in updateNameservers){
if(!module.exports[u]) module.exports[u] = {}
module.exports[u].updateNameservers = updateNameservers[u]
}
*/
module.exports.aws = {
getZone: getZone.aws,
getNameservers: getNameservers.aws,
updateNameservers: updateNameservers.aws,
upsertRecords: upsertRecords.aws,
listRecords: listRecords.aws,
deleteRecords: deleteRecords.aws,
deleteAllRecords: deleteAllRecords.aws,
addRecords: addRecord.aws,
//createRedirect: createRedirect.aws
}
module.exports.godaddy = {
//getZone: getZone.godaddy,
getNameservers: getNameservers.godaddy,
updateNameservers: updateNameservers.godaddy,
upsertRecords: upsertRecords.godaddy,
listRecords: listRecords.godaddy,
deleteRecords: deleteRecords.godaddy,
deleteAllRecords: deleteAllRecords.godaddy,
addRecords: addRecord.godaddy,
createRedirect: createRedirect.godaddy
}