'use strict'; async function appList (ctx) { try { const models = ctx.fs.dc.models; const appRes = await models.ProjectApp.findAll({ attributes: { exclude: ['projectId'] } }) ctx.status = 200; ctx.body = appRes } catch (error) { ctx.fs.logger.error(`path: ${ctx.path}, error: error`); ctx.status = 400; ctx.body = { message: typeof error == 'string' ? error : undefined } } } module.exports = { appList };