ludu-cloud/admin-web/mock/geographic.js
2019-02-27 11:06:55 +08:00

16 lines
354 B
Java

import city from './geographic/city.json';
import province from './geographic/province.json';
function getProvince(req, res) {
return res.json(province);
}
function getCity(req, res) {
return res.json(city[req.params.province]);
}
export default {
'GET /api/geographic/province': getProvince,
'GET /api/geographic/city/:province': getCity,
};