File tree 2 files changed +36
-2
lines changed
2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -282,8 +282,8 @@ export const registerRoutes = (
282
282
) ;
283
283
284
284
server . get (
285
- `${ urlPrefix } /timestaps ` ,
286
- silentRouteSettings ( getSchema ( server , "version " ) ) ,
285
+ `${ urlPrefix } /timestamps ` ,
286
+ silentRouteSettings ( getSchema ( server , "timestamps " ) ) ,
287
287
( request , reply ) => {
288
288
getTimestamps (
289
289
multichainClient ,
Original file line number Diff line number Diff line change @@ -143,6 +143,40 @@ const schemas: Schemas = {
143
143
} ,
144
144
} ,
145
145
146
+ timestamps :{
147
+ schema : {
148
+ description : "Returns the latest 10 timestamps" ,
149
+ tags : [ "system" ] ,
150
+ summary : "Get timestamps" ,
151
+ security : [
152
+ {
153
+ bearerToken : [ ] ,
154
+ } ,
155
+ ] ,
156
+ response : {
157
+ 200 : {
158
+ description : "successful response" ,
159
+ type : "object" ,
160
+ properties : {
161
+ apiVersion : { type : "string" , example : "1.0" } ,
162
+ data : {
163
+ type : "object" ,
164
+ properties : {
165
+ timestamps : {
166
+ type : "array" ,
167
+ items : {
168
+ type : "number" ,
169
+ example : 1613000000 ,
170
+ } ,
171
+ } ,
172
+ } ,
173
+ } ,
174
+ } ,
175
+ } ,
176
+ } ,
177
+ }
178
+ } ,
179
+
146
180
registerNode : {
147
181
schema : {
148
182
description : "Used by non-alpha MultiChain nodes to register their wallet address." ,
You can’t perform that action at this time.
0 commit comments