« blib/lib/App/Netdisco/Web/Health.pm
↑ Summary
blib/lib/App/Netdisco/Web/Plugin/AdminTask/ACLEditor.pm »
| 1 | package App::Netdisco::Web::ManagedConfig; | ||
| 2 | |||
| 3 | use Dancer ':syntax'; | ||
| 4 | |||
| 5 | use App::Netdisco::Util::ManagedConfig 'load_managed_config'; | ||
| 6 | |||
| 7 | # /t/<tenant>/ sets `var tenant` and then forwards, and the `before` hooks run | ||
| 8 | # again: the first pass applies the default tenant and the forwarded pass | ||
| 9 | # applies the tenant. A pass whose counter has not moved reads only the | ||
| 10 | # counter; the overlay comes from the cache. | ||
| 11 | hook 'before' => sub { load_managed_config() }; | ||
| 12 | |||
| 13 | true; |