{"size": 385, "ext": "js", "max_stars_repo_path": "pages/api/quest/getList.js", "max_stars_repo_name": "ehomesprite/workOutHelper", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "pages/api/quest/getList.js", "max_issues_repo_name": "ehomesprite/workOutHelper", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "pages/api/quest/getList.js", "max_forks_repo_name": "ehomesprite/workOutHelper", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.0833333333, "max_line_length": 63, "alphanum_fraction": 0.6415584416}
/**
 * created by zhangzihao on {2021/7/27}
 */
import ServerAPI from '../../../server/api';
import { validParamsHandler } from '../../../server/utils/res';

export default async (req, res) => {
  const { uid } = req.body;
  if (!validParamsHandler(res, [uid])) return;
  const list = await ServerAPI.Quest.getUserQuestList({uid});
  res.status(200).json({ code: 200, data: list });
};