Skip to content

Commit 51bca50

Browse files
committed
fix route integration?
1 parent 6e0afc8 commit 51bca50

File tree

5 files changed

+99
-201
lines changed

5 files changed

+99
-201
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ clean:
5252
build: src/ cloudformation/ docs/
5353
yarn -D
5454
VITE_BUILD_HASH=$(GIT_HASH) yarn build
55+
cp -r src/api/resources/ dist/api/resources
5556
sam build --template-file cloudformation/main.yml
5657

5758
local:

cloudformation/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ Resources:
127127
BuildMethod: esbuild
128128
BuildProperties:
129129
Format: esm
130-
Minify: true
130+
Minify: !Equals [!Ref RunEnvironment, 'prod']
131131
OutExtension:
132132
- .js=.mjs
133133
Loader:
134134
- .png=file
135135
- .pkpass=file
136136
- .json=file
137137
Target: "es2022"
138-
Sourcemap: false
138+
Sourcemap: !Not [!Equals [!Ref RunEnvironment, 'prod']]
139139
EntryPoints:
140140
- api/lambda.js
141141
External:

src/api/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import NodeCache from "node-cache";
2222
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
2323
import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager";
2424
import { SESClient } from "@aws-sdk/client-ses";
25+
import mobileWalletRoute from "./routes/mobileWallet.js";
2526

2627
dotenv.config();
2728

@@ -117,6 +118,7 @@ async function init() {
117118
api.register(icalPlugin, { prefix: "/ical" });
118119
api.register(iamRoutes, { prefix: "/iam" });
119120
api.register(ticketsPlugin, { prefix: "/tickets" });
121+
api.register(mobileWalletRoute, { prefix: "/mobileWallet" });
120122
if (app.runEnvironment === "dev") {
121123
api.register(vendingPlugin, { prefix: "/vending" });
122124
}

src/api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"zod-validation-error": "^3.3.1"
4646
},
4747
"devDependencies": {
48-
"@tsconfig/node22": "^22.0.0"
48+
"@tsconfig/node22": "^22.0.0",
49+
"nodemon": "^3.1.9"
4950
}
5051
}

0 commit comments

Comments
 (0)