Skip to content

Commit

Permalink
Loosen restriction on base URI match for API filter, for injecting se…
Browse files Browse the repository at this point in the history
…rver_groups.

See: jhuckaby/pixl-server-web#6
  • Loading branch information
jhuckaby committed Oct 29, 2024
1 parent ae28d63 commit 48490e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = Class.create({
this.api.addNamespace( "app", "api_", this );

// intercept API requests to inject server groups
this.web.addURIFilter( /^\/api\/app\/\w+/, "API Filter", function(args, callback) {
this.web.addURIFilter( /\/api\/app\/\w+/, "API Filter", function(args, callback) {
// load server groups for all API requests (these are cached in RAM)
self.storage.listGet( 'global/server_groups', 0, 0, function(err, items) {
args.server_groups = items;
Expand Down

0 comments on commit 48490e0

Please sign in to comment.