Register the global PluginLoader so routes can access auth bridges. Called once during server startup after plugins are loaded.
(loader: Arc<PluginLoader>)
| 4536 | /// Register the global PluginLoader so routes can access auth bridges. |
| 4537 | /// Called once during server startup after plugins are loaded. |
| 4538 | pub fn set_plugin_loader(loader: Arc<PluginLoader>) { |
| 4539 | let _ = PLUGIN_LOADER.set(loader); |
| 4540 | } |
| 4541 | |
| 4542 | fn get_plugin_loader() -> Option<&'static Arc<PluginLoader>> { |
| 4543 | PLUGIN_LOADER.get() |
no test coverage detected