made add company details api and moved it in the host folder
This commit is contained in:
@@ -29,7 +29,6 @@ provider:
|
||||
JWT_SECRET: ${env:JWT_SECRET}
|
||||
SALT_ROUNDS: ${env:SALT_ROUNDS}
|
||||
NODE_ENV: ${env:NODE_ENV}
|
||||
# AWS_REGION: ${env:AWS_REGION}
|
||||
S3_BUCKET_NAME: ${env:S3_BUCKET_NAME}
|
||||
|
||||
iam:
|
||||
@@ -59,7 +58,7 @@ custom:
|
||||
bundle: true
|
||||
minify: false
|
||||
sourcemap: false
|
||||
exclude: ['aws-sdk'] # Exclude AWS SDK v2, but include v3 (@aws-sdk/*)
|
||||
exclude: []
|
||||
target: node20
|
||||
platform: node
|
||||
concurrency: 10
|
||||
@@ -68,15 +67,17 @@ custom:
|
||||
package:
|
||||
individually: true
|
||||
patterns:
|
||||
- '!node_modules/**' # exclude all node_modules first
|
||||
- '!**/*.spec.ts'
|
||||
- '!**/*.test.ts'
|
||||
- '!**/*.log'
|
||||
- 'src/**' # include all source files
|
||||
- 'common/**' # include common modules
|
||||
- 'src/**'
|
||||
- 'common/**'
|
||||
- 'prisma/schema.prisma'
|
||||
- 'node_modules/@prisma/client/**'
|
||||
- 'node_modules/.prisma/client/**'
|
||||
- 'prisma/schema.prisma'
|
||||
- 'node_modules/@aws-sdk/**'
|
||||
- 'node_modules/@smithy/**' # ✅ include AWS SDK v3 internal deps
|
||||
- 'node_modules/@aws-crypto/**'
|
||||
|
||||
functions:
|
||||
# 👇 Example Lambda for Host Module
|
||||
@@ -167,16 +168,18 @@ functions:
|
||||
method: post
|
||||
|
||||
addCompanyDetails:
|
||||
handler: src/modules/minglaradmin/handlers/addCompanyDetails.handler
|
||||
handler: src/modules/host/handlers/addCompanyDetails.handler
|
||||
package:
|
||||
patterns:
|
||||
- 'src/modules/minglaradmin/**'
|
||||
- 'src/modules/host/**'
|
||||
- 'common/**'
|
||||
- 'node_modules/@aws-sdk/**'
|
||||
- 'node_modules/@smithy/**' # ✅ critical fix
|
||||
- 'node_modules/@aws-crypto/**'
|
||||
- 'node_modules/.prisma/client/libquery_engine-rhel-openssl-3.0.x.so.node'
|
||||
- 'node_modules/@prisma/client/**'
|
||||
- 'node_modules/@aws-sdk/**'
|
||||
- 'prisma/schema.prisma'
|
||||
events:
|
||||
- httpApi:
|
||||
path: /minglaradmin/add-company-details
|
||||
path: /host/add-company-details
|
||||
method: post
|
||||
Reference in New Issue
Block a user