Skip to content

Commit

Permalink
Apply cfformat changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano authored and github-actions[bot] committed May 25, 2024
1 parent 59f59cf commit 95f1396
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/java/ortus/boxlang/web/MiniServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ public static void main( String[] args ) {
.addHttpListener( port, host )
.setHandler( new EncodingHandler( new ContentEncodingRepository().addEncodingHandler(
"gzip", new GzipEncodingProvider(), 50, Predicates.parse( "request-larger-than(1500)" ) ) )
.setNext( new WelcomeFileHandler(
Handlers.predicate(
// If this predicate evaluates to true, we process via BoxLang, otherwise, we serve a static file
Predicates.parse( "regex( '^(/.+?\\.cfml|/.+?\\.cf[cms]|.+?\\.bx[ms]{0,1})(/.*)?$' )" ),
new BLHandler( absWebRoot.toString() ),
new ResourceHandler( resourceManager )
.setDirectoryListingEnabled( true ) ),
resourceManager,
List.of( "index.bxm", "index.bxs", "index.cfm", "index.cfs", "index.htm", "index.html" )
) ) )
.setNext( new WelcomeFileHandler(
Handlers.predicate(
// If this predicate evaluates to true, we process via BoxLang, otherwise, we serve a static file
Predicates.parse( "regex( '^(/.+?\\.cfml|/.+?\\.cf[cms]|.+?\\.bx[ms]{0,1})(/.*)?$' )" ),
new BLHandler( absWebRoot.toString() ),
new ResourceHandler( resourceManager )
.setDirectoryListingEnabled( true ) ),
resourceManager,
List.of( "index.bxm", "index.bxs", "index.cfm", "index.cfs", "index.htm", "index.html" )
) ) )
.build();

// Add a shutdown hook to stop the server
Expand Down

0 comments on commit 95f1396

Please sign in to comment.