@@ -16,37 +16,43 @@ const VersionResponse: HttpResponse = {
1616} ;
1717
1818/**
19- * Ping Check
19+ * Ping AWM
20+ *
21+ * Test your connection to the Advanced Wallet Manager (AWM) server.
22+ *
23+ * @tag Advanced Wallets
24+ * @operationId v1.health.ping.awm
25+ */
26+ const PingRoute = httpRoute ( {
27+ method : 'POST' ,
28+ path : '/ping' ,
29+ request : httpRequest ( { } ) ,
30+ response : PingResponse ,
31+ description : 'Health check endpoint that returns server status' ,
32+ } ) ;
33+
34+ /**
35+ * Check AWM Version
36+ *
37+ * Check your version of the Advanced Wallet Manager (AWM) server.
2038 *
2139 * @tag Advanced Wallets
22- * @operationId v1.health.ping
23- * @private
40+ * @operationId v1.health.version.awm
2441 */
42+ const VersionRoute = httpRoute ( {
43+ method : 'GET' ,
44+ path : '/version' ,
45+ request : httpRequest ( { } ) ,
46+ response : VersionResponse ,
47+ description : 'Returns the current version of the server' ,
48+ } ) ;
49+
2550export const HealthCheckApiSpec = apiSpec ( {
26- 'v1.health.ping' : {
27- post : httpRoute ( {
28- method : 'POST' ,
29- path : '/ping' ,
30- request : httpRequest ( { } ) ,
31- response : PingResponse ,
32- description : 'Health check endpoint that returns server status' ,
33- } ) ,
51+ 'v1.health.ping.awm' : {
52+ post : PingRoute ,
3453 } ,
35- /**
36- * Version Check
37- *
38- * @tag Advanced Wallets
39- * @operationId v1.health.version
40- * @private
41- */
42- 'v1.health.version' : {
43- get : httpRoute ( {
44- method : 'GET' ,
45- path : '/version' ,
46- request : httpRequest ( { } ) ,
47- response : VersionResponse ,
48- description : 'Returns the current version of the server' ,
49- } ) ,
54+ 'v1.health.version.awm' : {
55+ get : VersionRoute ,
5056 } ,
5157} ) ;
5258
@@ -56,7 +62,7 @@ export function createHealthCheckRouter(): WrappedRouter<typeof HealthCheckApiSp
5662 decodeErrorFormatter : customDecodeErrorFormatter ,
5763 } ) ;
5864 // Ping endpoint handler
59- router . post ( 'v1.health.ping' , [
65+ router . post ( 'v1.health.ping.awm ' , [
6066 responseHandler ( ( ) =>
6167 Response . ok ( {
6268 status : 'advanced wallet manager server is ok!' ,
@@ -66,7 +72,7 @@ export function createHealthCheckRouter(): WrappedRouter<typeof HealthCheckApiSp
6672 ] ) ;
6773
6874 // Version endpoint handler
69- router . get ( 'v1.health.version' , [
75+ router . get ( 'v1.health.version.awm ' , [
7076 responseHandler ( ( ) =>
7177 Response . ok ( {
7278 version : pjson . version ,
0 commit comments