@xcelsior/support-api 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/stacks/SupportStack.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcelsior/support-api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"packages/**",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"typescript": "^5.3.3",
|
|
26
26
|
"@tsconfig/node18": "^18.2.2",
|
|
27
27
|
"@types/node": "^20.11.16",
|
|
28
|
-
"@xcelsior/
|
|
28
|
+
"@xcelsior/lambda-http": "1.0.5",
|
|
29
29
|
"@xcelsior/email": "1.0.2",
|
|
30
30
|
"@xcelsior/aws": "1.0.4",
|
|
31
|
-
"@xcelsior/
|
|
32
|
-
"@xcelsior/
|
|
31
|
+
"@xcelsior/support-client": "1.0.3",
|
|
32
|
+
"@xcelsior/monitoring": "1.0.4"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"dev": "sst dev --stage dev --mode basic",
|
package/stacks/SupportStack.ts
CHANGED
|
@@ -34,7 +34,7 @@ export function SupportStack({ stack }: StackContext) {
|
|
|
34
34
|
const vpcConfig = vpc
|
|
35
35
|
? {
|
|
36
36
|
vpc,
|
|
37
|
-
vpcSubnets: { subnetType: ec2.SubnetType.
|
|
37
|
+
vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_ISOLATED },
|
|
38
38
|
securityGroups: [lambdaSecurityGroup!],
|
|
39
39
|
}
|
|
40
40
|
: {};
|
|
@@ -271,14 +271,14 @@ export function SupportStack({ stack }: StackContext) {
|
|
|
271
271
|
},
|
|
272
272
|
cors: true,
|
|
273
273
|
routes: {
|
|
274
|
-
'GET /api/admin/
|
|
274
|
+
'GET /api/admin/config': {
|
|
275
275
|
function: {
|
|
276
276
|
handler: 'packages/functions/config/get.handler',
|
|
277
277
|
functionName: `${stack.stage}-support-get-config`,
|
|
278
278
|
},
|
|
279
279
|
cdk: { method: { apiKeyRequired: true } },
|
|
280
280
|
},
|
|
281
|
-
'PUT /api/admin/
|
|
281
|
+
'PUT /api/admin/config': {
|
|
282
282
|
function: {
|
|
283
283
|
handler: 'packages/functions/config/update.handler',
|
|
284
284
|
functionName: `${stack.stage}-support-update-config`,
|