-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
39 lines (33 loc) · 1.35 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
'use strict'
const province = require('./src/province')
const regency = require('./src/regency')
const district = require('./src/district')
const village = require('./src/village')
const indonesia = {
// provinces
getAllProvinces: province.getAllProvinces,
getProvinceById: province.getProvinceById,
getProvinceByName: province.getProvinceByName,
// regency
getAllRegencies: regency.getAllRegencies,
getRegencyById: regency.getRegencyById,
getRegencyByName: regency.getRegencyByName,
getRegenciesOfProvince: regency.getRegenciesOfProvince,
getRegenciesOfProvinceId: regency.getRegenciesOfProvinceId,
getRegenciesOfProvinceName: regency.getRegenciesOfProvinceName,
// district
getAllDistricts: district.getAllDistricts,
getDistrictById: district.getDistrictById,
getDistrictByName: district.getDistrictByName,
getDistrictsOfRegency: district.getDistrictsOfRegency,
getDistrictsOfRegencyId: district.getDistrictsOfRegencyId,
getDistrictsOfRegencyName: district.getDistrictsOfRegencyName,
// village
getAllVillages: village.getAllVillages,
getVillageById: village.getVillageById,
getVillageByName: village.getVillageByName,
getVillagesOfDistrict: village.getVillagesOfDistrict,
getVillagesOfDistrictId: village.getVillagesOfDistrictId,
getVillagesOfDistrictName: village.getVillagesOfDistrictName,
}
module.exports = indonesia