diff --git a/serverless.yml b/serverless.yml index 55667af..421b025 100644 --- a/serverless.yml +++ b/serverless.yml @@ -426,10 +426,9 @@ functions: - httpApi: path: /minglaradmin/edit-agreement-details method: patch - - - editAgreementDetails: - handler: src/modules/minglaradmin/handlers/editAgreementDetails.handler + + acceptHostApplication: + handler: src/modules/minglaradmin/handlers/acceptHostApplication.handler package: patterns: - 'src/modules/minglaradmin/**' @@ -440,7 +439,22 @@ functions: events: - httpApi: - path: /minglaradmin/edit-agreement-details + path: /minglaradmin/accept-host-application + method: patch + + rejectHostApplication: + handler: src/modules/minglaradmin/handlers/rejectHostApplication.handler + package: + patterns: + - 'src/modules/minglaradmin/**' + - 'common/**' + - 'src/common/**' + - 'node_modules/@prisma/client/**' + - 'node_modules/.prisma/**' + + events: + - httpApi: + path: /minglaradmin/reject-host-application method: patch addCompanyDetails: