File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub(super) fn build_routes() -> Routes {
18
18
routes. static_resource ( "/favicon.ico" , PermanentRedirect ( "/-/static/favicon.ico" ) ) ;
19
19
routes. static_resource ( "/sitemap.xml" , super :: sitemap:: sitemapindex_handler) ;
20
20
routes. static_resource (
21
- "/-/sitemap/:which /sitemap.xml" ,
21
+ "/-/sitemap/:letter /sitemap.xml" ,
22
22
super :: sitemap:: sitemap_handler,
23
23
) ;
24
24
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ impl_webpage! {
40
40
41
41
pub fn sitemap_handler ( req : & mut Request ) -> IronResult < Response > {
42
42
let router = extension ! ( req, Router ) ;
43
- let which = cexpect ! ( req, router. find( "which " ) ) . to_lowercase ( ) ;
43
+ let letter = cexpect ! ( req, router. find( "letter " ) ) . to_lowercase ( ) ;
44
44
45
45
let mut conn = extension ! ( req, Pool ) . get ( ) ?;
46
46
let query = conn
@@ -60,8 +60,8 @@ pub fn sitemap_handler(req: &mut Request) -> IronResult<Response> {
60
60
& [
61
61
// this LIKE pattern has the '%' only at the end,
62
62
// so postgres can use the index on `name`
63
- & format ! ( "{}%" , which ) ,
64
- & format ! ( "{}%" , which . to_uppercase( ) ) ,
63
+ & format ! ( "{}%" , letter ) ,
64
+ & format ! ( "{}%" , letter . to_uppercase( ) ) ,
65
65
] ,
66
66
)
67
67
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments