File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,8 @@ mod tests {
133
133
) ,
134
134
( "/releases/recent/1" , "/releases/recent/:page" ) ,
135
135
( "/-/static/robots.txt" , "static resource" ) ,
136
- ( "/sitemap.xml" , "static resource" ) ,
136
+ ( "/sitemap.xml" , "/sitemap.xml" ) ,
137
+ ( "/-/sitemap/a/sitemap.xml" , "/-/sitemap/:letter/sitemap.xml" ) ,
137
138
( "/-/static/style.css" , "static resource" ) ,
138
139
( "/-/static/vendored.css" , "static resource" ) ,
139
140
( "/rustdoc/rcc/0.0.0/rcc/index.html" , "rustdoc page" ) ,
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ pub(super) fn build_routes() -> Routes {
22
22
// https://support.google.com/webmasters/answer/183668?hl=en
23
23
routes. static_resource ( "/robots.txt" , PermanentRedirect ( "/-/static/robots.txt" ) ) ;
24
24
routes. static_resource ( "/favicon.ico" , PermanentRedirect ( "/-/static/favicon.ico" ) ) ;
25
- routes. static_resource ( "/sitemap.xml" , super :: sitemap:: sitemapindex_handler) ;
26
- routes. static_resource (
25
+ routes. internal_page ( "/sitemap.xml" , super :: sitemap:: sitemapindex_handler) ;
26
+ routes. internal_page (
27
27
"/-/sitemap/:letter/sitemap.xml" ,
28
28
super :: sitemap:: sitemap_handler,
29
29
) ;
You can’t perform that action at this time.
0 commit comments