forked from Mirrors/doipjs
Automatically generate service provider data
This commit is contained in:
parent
f2fdbd3a8b
commit
39a74a6177
1 changed files with 4 additions and 7 deletions
|
@ -21,13 +21,10 @@ const list = [
|
||||||
'lobsters',
|
'lobsters',
|
||||||
]
|
]
|
||||||
|
|
||||||
const data = {
|
const data = {}
|
||||||
dns: require('./serviceproviders/dns'),
|
list.forEach((item, i) => {
|
||||||
xmpp: require('./serviceproviders/xmpp'),
|
data[item] = require(`./serviceproviders/${item}`)
|
||||||
twitter: require('./serviceproviders/twitter'),
|
})
|
||||||
hackernews: require('./serviceproviders/hackernews'),
|
|
||||||
lobsters: require('./serviceproviders/lobsters'),
|
|
||||||
}
|
|
||||||
|
|
||||||
const match = (uri, opts) => {
|
const match = (uri, opts) => {
|
||||||
let matches = [], sp
|
let matches = [], sp
|
||||||
|
|
Loading…
Reference in a new issue