...
|
...
|
@@ -18,6 +18,11 @@ const helpers = global.yoho.helpers; |
|
|
* @param next
|
|
|
*/
|
|
|
exports.address = (req, res, next) => {
|
|
|
if (!req.user.uid) {
|
|
|
res.status(400).send({ error: 'no user' });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
let responseData = {
|
|
|
module: 'home',
|
|
|
page: 'address',
|
...
|
...
|
@@ -42,6 +47,10 @@ exports.address = (req, res, next) => { |
|
|
* @param next
|
|
|
*/
|
|
|
exports.addressAct = (req, res, next) => {
|
|
|
if (!req.user.uid) {
|
|
|
res.status(400).send({ error: 'no user' });
|
|
|
return;
|
|
|
}
|
|
|
addressModel.address({
|
|
|
id: req.params.id,
|
|
|
uid: req.user.uid
|
...
|
...
|
|