mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-26 22:20:21 +00:00
12 lines
381 B
Python
12 lines
381 B
Python
from .hookspec import hookspec
|
|
|
|
|
|
@hookspec
|
|
def get_urlpatterns():
|
|
return [] # e.g. [path('your_plugin_type/plugin_name/url.py', your_view)]
|
|
|
|
@hookspec
|
|
def register_urlpatterns(urlpatterns):
|
|
"""Mutate urlpatterns in place to add your urlpatterns in a specific position"""
|
|
# e.g. urlpatterns.insert(0, path('your_plugin_type/plugin_name/url.py', your_view))
|
|
pass
|