You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
284 B
15 lines
284 B
import city from './geographic/city.json';
|
|
import province from './geographic/province.json';
|
|
|
|
export function getProvince(req, res) {
|
|
res.json(province);
|
|
}
|
|
|
|
export function getCity(req, res) {
|
|
res.json(city[req.params.province]);
|
|
}
|
|
|
|
export default {
|
|
getProvince,
|
|
getCity,
|
|
};
|
|
|