Skip to content

Commit 04a4eb6

Browse files
committed
chore: wip
1 parent 2db0176 commit 04a4eb6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

routes/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ route.get('/api/welcome/', () => 'hello world 4') // stacksjs.org/api/welcome/
88

99
route.health() // /api/health
1010
// route.action('BuddyAction') // /api/buddy
11-
route.get('/api/buddy/commands', 'Buddy/CommandsAction') // /api/buddy
12-
route.get('/api/buddy/versions', 'Buddy/VersionsAction') // /api/buddy
11+
route.get('/api/buddy/commands', 'Buddy/CommandsAction')
12+
route.get('/api/buddy/versions', 'Buddy/VersionsAction')
1313
// route.job('/api/example') // the equivalent of route.get('/api/example', 'ExampleJob')
1414
// route.get('/api/buddy-2', '../app/Actions/BuddyAction') // todo: support this
1515
// route.get('/api/buddy-3', import('../app/Actions/BuddyAction')) // todo: support this

storage/framework/core/cloud/src/cloud/compute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class ComputeStack {
5353
}),
5454
}),
5555
healthCheck: {
56-
command: ['CMD-SHELL', 'curl -f http://localhost:3000/api/healthy || exit 1'], // requires curl inside the container which isn't available in the base image. I wonder if there is a better way
56+
command: ['CMD-SHELL', 'curl -f http://localhost:3000/api/health || exit 1'], // requires curl inside the container which isn't available in the base image. I wonder if there is a better way
5757
interval: Duration.seconds(10),
5858
timeout: Duration.seconds(5),
5959
retries: 3,
@@ -114,7 +114,7 @@ export class ComputeStack {
114114
port: 3000,
115115
healthCheck: {
116116
interval: Duration.seconds(6),
117-
path: '/api/healthy',
117+
path: '/api/health',
118118
protocol: elbv2.Protocol.HTTP,
119119
timeout: Duration.seconds(5),
120120
healthyThresholdCount: 2,

storage/framework/core/router/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class Router implements RouterInterface {
6666
const healthModule = await import(p.userActionsPath('HealthAction.ts'))
6767
const callback = healthModule.default.handle
6868

69-
this.addRoute('GET', '/api/healthy', callback, 200)
69+
this.addRoute('GET', '/api/health', callback, 200)
7070
return this
7171
}
7272

0 commit comments

Comments
 (0)