import Router from 'koa-router'

export const internalProcessViewRouter = new Router()

// should be used only for building process service by headless chrome internally
internalProcessViewRouter.post('/internal-process-service-view', async (context, next) => {
  let { model, base } = context.request.body
  await context.render('internal-process-service-view', { model, base })
})
