diff --git a/api/app/lib/controllers/workOrder/index.js b/api/app/lib/controllers/workOrder/index.js index 12aad4a..dd1c92d 100644 --- a/api/app/lib/controllers/workOrder/index.js +++ b/api/app/lib/controllers/workOrder/index.js @@ -13,4 +13,8 @@ async function getEnabledWorkflowProcess (ctx) { message: typeof error == 'string' ? error : undefined } } -} \ No newline at end of file +} + +module.exports = { + getEnabledWorkflowProcess +}; \ No newline at end of file diff --git a/api/app/lib/routes/workOrder/index.js b/api/app/lib/routes/workOrder/index.js new file mode 100644 index 0000000..fc669e4 --- /dev/null +++ b/api/app/lib/routes/workOrder/index.js @@ -0,0 +1,8 @@ +'use strict'; + +const workOrder = require('../../controllers/workOrder'); + +module.exports = function (app, router, opts) { + app.fs.api.logAttr['GET/workflow/process/enabled'] = { content: '获取工作流可用表单', visible: true }; + router.get('/workflow/process/enabled', workOrder.getEnabledWorkflowProcess); +}; \ No newline at end of file