File tree Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ export const withAuth = async (server: FastifyInstance) => {
171
171
if (
172
172
req . url === "/favicon.ico" ||
173
173
req . url === "/" ||
174
- req . url === "/health" ||
174
+ req . url === "/system/ health" ||
175
175
req . url === "/static" ||
176
176
req . url === "/json" ||
177
177
req . url . startsWith ( "/auth/payload" ) ||
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export async function home(fastify: FastifyInstance) {
13
13
method : "GET" ,
14
14
url : "/" ,
15
15
schema : {
16
+ hide : true ,
16
17
summary : "/" ,
17
18
description : "Instructions to manage your Engine" ,
18
19
tags : [ "System" ] ,
Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ export const withRoutes = async (fastify: FastifyInstance) => {
221
221
await fastify . register ( marketplaceV3Routes ) ;
222
222
223
223
// System
224
+ // These should be hidden by default
224
225
await fastify . register ( home ) ;
225
226
await fastify . register ( healthCheck ) ;
226
227
await fastify . register ( queueStatus ) ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export async function healthCheck(fastify: FastifyInstance) {
21
21
method : "GET" ,
22
22
url : "/system/health" ,
23
23
schema : {
24
+ hide : true ,
24
25
summary : "Check health" ,
25
26
description : "Check the system health of Engine" ,
26
27
tags : [ "System" ] ,
@@ -40,7 +41,7 @@ export async function healthCheck(fastify: FastifyInstance) {
40
41
41
42
res . status ( StatusCodes . OK ) . send ( {
42
43
status : "OK" ,
43
- engineVersion : process . env . ENGINE_VERSION || undefined ,
44
+ engineVersion : process . env . ENGINE_VERSION ,
44
45
} ) ;
45
46
} ,
46
47
} ) ;
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export async function queueStatus(fastify: FastifyInstance) {
23
23
method : "GET" ,
24
24
url : "/system/queue" ,
25
25
schema : {
26
+ hide : true ,
26
27
summary : "Check queue status" ,
27
28
description : "Check the status of the queue" ,
28
29
tags : [ "System" ] ,
You can’t perform that action at this time.
0 commit comments