File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -125,9 +125,17 @@ pub(super) fn build_routes() -> Routes {
125
125
routes
126
126
}
127
127
128
+ /// This wrapper class aids the construction of iron's Router, with docs.rs-specific additions to
129
+ /// it. Routes are supposed to be added by the build_routes function, which calls methods in this
130
+ /// struct depending on the type of route being added.
128
131
pub ( super ) struct Routes {
132
+ /// Normal GET routes.
129
133
get : Vec < ( String , Box < dyn Handler > ) > ,
134
+ /// GET routes serving rustdoc content. The BlockBlacklistedPrefixes middleware is added
135
+ /// automatically to all of them.
130
136
rustdoc_get : Vec < ( String , Box < dyn Handler > ) > ,
137
+ /// Prefixes of all the internal routes. This data is used to power the
138
+ /// BlockBlacklistedPrefixes middleware.
131
139
page_prefixes : HashSet < String > ,
132
140
}
133
141
You can’t perform that action at this time.
0 commit comments