answer.js 424 B

123456789
  1. 'use strict';
  2. module.exports = app => {
  3. const { router, controller } = app;
  4. const prefix = '/api/exam/';
  5. const target = 'answer';
  6. router.post(target, `${prefix}${target}/getExamQuestion`, controller[target].getExamQuestion);
  7. router.resources(target, `${prefix}${target}`, controller[target]); // index、create、show、destroy
  8. router.post(target, `${prefix}${target}/update/:id`, controller[target].update);
  9. };