File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
static-files-middleware/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,3 @@ mod middleware;
22pub use middleware:: * ;
33mod files_access;
44pub use files_access:: * ;
5- pub const DEFAULT_FOLDER : & str = "./wwwroot" ;
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ pub struct StaticFilesMiddleware {
3434}
3535
3636impl StaticFilesMiddleware {
37+ pub const DEFAULT_FOLDER : & ' static str = "./wwwroot" ;
3738 pub fn new ( mappings : Option < Vec < FilesMapping > > , index_files : Option < Vec < String > > ) -> Self {
3839 let index_files = if let Some ( index_file_to_check) = index_files {
3940 let mut index_files_result = Vec :: with_capacity ( index_file_to_check. len ( ) ) ;
@@ -191,7 +192,7 @@ impl HttpServerMiddleware for StaticFilesMiddleware {
191192
192193 if let Some ( result) = self
193194 . handle_folder (
194- super :: DEFAULT_FOLDER ,
195+ Self :: DEFAULT_FOLDER ,
195196 ctx. request . http_path . as_str_from_segment ( 0 ) ,
196197 )
197198 . await
You can’t perform that action at this time.
0 commit comments