Add addActivity handler and createActivity method in HostService

- Implemented addActivity handler to create new activities with validation.
- Added createActivity method in HostService to handle activity creation logic.
This commit is contained in:
paritosh18
2025-11-22 20:48:45 +05:30
parent d21dcacd7b
commit 1c83cc5910
3 changed files with 102 additions and 0 deletions

View File

@@ -176,6 +176,22 @@ functions:
path: /host/add-payment-details
method: post
addActivity:
handler: src/modules/host/handlers/addActivity.handler
package:
patterns:
- 'src/modules/host/handlers/addActivity.*'
- 'src/modules/host/services/**'
- 'common/**'
- 'src/common/**'
- 'node_modules/@prisma/client/**'
- 'node_modules/.prisma/**'
events:
- httpApi:
path: /host/add-activity
method: post
getHostById:
handler: src/modules/host/handlers/getbyidhandler.handler
package: