File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ pub(super) fn build_axum_routes() -> AxumRouter {
49
49
"/favicon.ico" ,
50
50
get_static ( || async { Redirect :: permanent ( "/-/static/favicon.ico" ) } ) ,
51
51
)
52
+ . route (
53
+ "/opensearch.xml" ,
54
+ get_static ( || async { Redirect :: permanent ( "/-/static/opensearch.xml" ) } ) ,
55
+ )
52
56
. route (
53
57
"/sitemap.xml" ,
54
58
get_internal ( super :: sitemap:: sitemapindex_handler) ,
@@ -108,13 +112,6 @@ pub(super) fn build_axum_routes() -> AxumRouter {
108
112
pub ( super ) fn build_routes ( ) -> Routes {
109
113
let mut routes = Routes :: new ( ) ;
110
114
111
- // This should not need to be served from the root as we reference the inner path in links,
112
- // but clients might have cached the url and need to update it.
113
- routes. static_resource (
114
- "/opensearch.xml" ,
115
- PermanentRedirect ( "/-/static/opensearch.xml" ) ,
116
- ) ;
117
-
118
115
routes. static_resource ( "/-/static/:single" , super :: statics:: static_handler) ;
119
116
routes. static_resource ( "/-/static/*" , super :: statics:: static_handler) ;
120
117
routes. internal_page (
You can’t perform that action at this time.
0 commit comments