mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
pywb_init: ability to override DirectoryCollsLoader with custom class
This commit is contained in:
parent
7a8a0e5244
commit
b0773ca8b8
@ -252,8 +252,10 @@ def create_wb_router(passed_config={}):
|
||||
|
||||
static_routes = config.get('static_routes', {})
|
||||
|
||||
colls_loader_cls = config.get('colls_loader_cls', DirectoryCollsLoader)
|
||||
|
||||
# collections based on file system
|
||||
dir_loader = DirectoryCollsLoader(config, static_routes)
|
||||
dir_loader = colls_loader_cls(config, static_routes)
|
||||
collections.update(dir_loader())
|
||||
|
||||
if config.get('enable_memento', False):
|
||||
|
Loading…
x
Reference in New Issue
Block a user