@@ -180,18 +180,6 @@ pub(super) fn build_axum_routes() -> AxumRouter {
180
180
"/crate/:name" ,
181
181
get_internal ( super :: crate_details:: crate_details_handler) ,
182
182
)
183
- . route (
184
- "/platforms/:name/:version/:target/" ,
185
- get_internal ( super :: crate_details:: get_all_platforms) ,
186
- )
187
- . route (
188
- "/platforms/:name/:version/:target/*path" ,
189
- get_internal ( super :: crate_details:: get_all_platforms) ,
190
- )
191
- . route (
192
- "/releases/list/:name" ,
193
- get_internal ( super :: crate_details:: get_all_releases) ,
194
- )
195
183
. route_with_tsr (
196
184
"/crate/:name/:version" ,
197
185
get_internal ( super :: crate_details:: crate_details_handler) ,
@@ -248,6 +236,22 @@ pub(super) fn build_axum_routes() -> AxumRouter {
248
236
"/crate/:name/:version/source/*path" ,
249
237
get_internal ( super :: source:: source_browser_handler) ,
250
238
)
239
+ . route (
240
+ "/menus/platforms/:name/:version/:target" ,
241
+ get_internal ( super :: crate_details:: get_all_platforms) ,
242
+ )
243
+ . route (
244
+ "/menus/platforms/:name/:version/:target/" ,
245
+ get_internal ( super :: crate_details:: get_all_platforms) ,
246
+ )
247
+ . route (
248
+ "/menus/platforms/:name/:version/:target/*path" ,
249
+ get_internal ( super :: crate_details:: get_all_platforms) ,
250
+ )
251
+ . route (
252
+ "/menus/releases/:name" ,
253
+ get_internal ( super :: crate_details:: get_all_releases) ,
254
+ )
251
255
. route (
252
256
"/-/rustdoc.static/*path" ,
253
257
get_internal ( super :: rustdoc:: static_asset_handler) ,
0 commit comments