Skip to content

Commit

Permalink
Implement webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
nickabb committed Mar 8, 2023
1 parent ac3007e commit 0caeffe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/start/routes.ts
Expand Up @@ -41,6 +41,14 @@ Route.get('/', async () => {
})
})

Route.post('/document/update', async ({ request }) => {
const { agentId, documentId, documentStatus } = request.body()

await DocumentReview.query()
.where('documentId', documentId)
.update({ agentId: agentId, documentStatus: documentStatus })
})

Route.group(() => {
Route.post('authorizations', 'AuthorizationsController.process')
})

0 comments on commit 0caeffe

Please sign in to comment.