Skip to content

Commit

Permalink
fix for Coldbox 6 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Sep 26, 2024
1 parent 9fa4a86 commit f0915c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/Router.cfc
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
component {

function configure(){
var apiEnabled = controller.getModuleSettings( "logstash", "apiEnabled", true );

var moduleSettings = controller.getWirebox().getInstance( "coldbox:moduleSettings:logstash" );

var apiEnabled = moduleSettings.apiEnabled ?: true;

if( apiEnabled ){
route( "/api/logs" )
Expand Down

0 comments on commit f0915c2

Please sign in to comment.