@@ -57,23 +57,23 @@ impl ApplicationServer {
57
57
"/pos/validator/all" ,
58
58
get ( pos_handlers:: get_all_validators) ,
59
59
)
60
- . route ( "/pos/bond/: address" , get ( pos_handlers:: get_bonds) )
60
+ . route ( "/pos/bond/{ address} " , get ( pos_handlers:: get_bonds) )
61
61
. route (
62
- "/pos/merged-bonds/: address" ,
62
+ "/pos/merged-bonds/{ address} " ,
63
63
get ( pos_handlers:: get_merged_bonds) ,
64
64
)
65
- . route ( "/pos/unbond/: address" , get ( pos_handlers:: get_unbonds) )
65
+ . route ( "/pos/unbond/{ address} " , get ( pos_handlers:: get_unbonds) )
66
66
. route (
67
- "/pos/merged-unbonds/: address" ,
67
+ "/pos/merged-unbonds/{ address} " ,
68
68
get ( pos_handlers:: get_merged_unbonds) ,
69
69
)
70
70
. route (
71
- "/pos/withdraw/: address" ,
71
+ "/pos/withdraw/{ address} " ,
72
72
get ( pos_handlers:: get_withdraws) ,
73
73
)
74
- . route ( "/pos/reward/: address" , get ( pos_handlers:: get_rewards) )
74
+ . route ( "/pos/reward/{ address} " , get ( pos_handlers:: get_rewards) )
75
75
. route (
76
- "/pos/reward/: delegator/: validator/: epoch" ,
76
+ "/pos/reward/{ delegator}/{ validator}/{ epoch} " ,
77
77
get ( pos_handlers:: get_rewards_by_delegator_and_validator_and_epoch) ,
78
78
)
79
79
. route (
@@ -89,45 +89,45 @@ impl ApplicationServer {
89
89
get ( gov_handlers:: get_all_governance_proposals) ,
90
90
)
91
91
. route (
92
- "/gov/proposal/:id " ,
92
+ "/gov/proposal/{id} " ,
93
93
get ( gov_handlers:: get_governance_proposal_by_id) ,
94
94
)
95
95
. route (
96
- "/gov/proposal/:id /data" ,
96
+ "/gov/proposal/{id} /data" ,
97
97
get ( gov_handlers:: get_proposal_data_by_proposal_id) ,
98
98
)
99
99
. route (
100
- "/gov/proposal/:id /votes" ,
100
+ "/gov/proposal/{id} /votes" ,
101
101
get ( gov_handlers:: get_governance_proposal_votes) ,
102
102
)
103
103
. route (
104
- "/gov/proposal/:id /votes/: address" ,
104
+ "/gov/proposal/{id} /votes/{ address} " ,
105
105
get ( gov_handlers:: get_governance_proposal_votes_by_address) ,
106
106
)
107
107
. route (
108
- "/gov/voter/: address/votes" ,
108
+ "/gov/voter/{ address} /votes" ,
109
109
get ( gov_handlers:: get_governance_proposal_votes_by_voter) ,
110
110
)
111
111
. route (
112
- "/account/: address" ,
112
+ "/account/{ address} " ,
113
113
get ( balance_handlers:: get_address_balance) ,
114
114
)
115
115
. route (
116
- "/revealed-public-key/: address" ,
116
+ "/revealed-public-key/{ address} " ,
117
117
get ( pk_handlers:: get_revealed_pk) ,
118
118
)
119
119
. route ( "/gas/estimate" , get ( gas_handlers:: get_gas_estimate) )
120
120
. route (
121
- "/gas-price/: token" ,
121
+ "/gas-price/{ token} " ,
122
122
get ( gas_handlers:: get_gas_price_by_token) ,
123
123
)
124
124
. route ( "/gas-price" , get ( gas_handlers:: get_all_gas_prices) )
125
125
. route (
126
- "/chain/wrapper/:id " ,
126
+ "/chain/wrapper/{id} " ,
127
127
get ( transaction_handlers:: get_wrapper_tx) ,
128
128
)
129
129
. route (
130
- "/chain/inner/:id " ,
130
+ "/chain/inner/{id} " ,
131
131
get ( transaction_handlers:: get_inner_tx) ,
132
132
)
133
133
. route (
@@ -153,7 +153,7 @@ impl ApplicationServer {
153
153
"/chain/epoch/latest" ,
154
154
get ( chain_handlers:: get_last_processed_epoch) ,
155
155
)
156
- . route ( "/ibc/: tx_id/status" , get ( ibc_handler:: get_ibc_status) )
156
+ . route ( "/ibc/{ tx_id} /status" , get ( ibc_handler:: get_ibc_status) )
157
157
. route (
158
158
"/ibc/rate-limits" ,
159
159
get ( ibc_handler:: get_ibc_rate_limits) ,
@@ -163,15 +163,15 @@ impl ApplicationServer {
163
163
get ( ibc_handler:: get_ibc_token_flows) ,
164
164
)
165
165
. route (
166
- "/ibc/token-throughput/: token" ,
166
+ "/ibc/token-throughput/{ token} " ,
167
167
get ( ibc_handler:: get_ibc_token_throughput) ,
168
168
)
169
169
. route (
170
170
"/pgf/payments" ,
171
171
get ( pgf_service:: get_pgf_continuous_payments) ,
172
172
)
173
173
. route (
174
- "/pgf/paymenents/: proposal_id" ,
174
+ "/pgf/paymenents/{ proposal_id} " ,
175
175
get ( pgf_service:: get_pgf_payment_by_proposal_id) ,
176
176
)
177
177
. route (
@@ -181,15 +181,15 @@ impl ApplicationServer {
181
181
// Server sent events endpoints
182
182
. route ( "/chain/status" , get ( chain_handlers:: chain_status) )
183
183
. route (
184
- "/block/height/: value" ,
184
+ "/block/height/{ value} " ,
185
185
get ( block_handlers:: get_block_by_height) ,
186
186
)
187
187
. route (
188
- "/block/timestamp/: value" ,
188
+ "/block/timestamp/{ value} " ,
189
189
get ( block_handlers:: get_block_by_timestamp) ,
190
190
)
191
191
. route (
192
- "/block/hash/: value" ,
192
+ "/block/hash/{ value} " ,
193
193
get ( block_handlers:: get_block_by_hash) ,
194
194
)
195
195
. route (
0 commit comments