mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
register_routes() plugin hook datasette argument, closes #1404
This commit is contained in:
parent
6f1731f305
commit
eccfeb0871
6 changed files with 37 additions and 4 deletions
|
|
@ -529,8 +529,11 @@ Examples: `datasette-atom <https://github.com/simonw/datasette-atom>`_, `dataset
|
|||
|
||||
.. _plugin_register_routes:
|
||||
|
||||
register_routes()
|
||||
-----------------
|
||||
register_routes(datasette)
|
||||
--------------------------
|
||||
|
||||
``datasette`` - :ref:`internals_datasette`
|
||||
You can use this to access plugin configuration options via ``datasette.plugin_config(your_plugin_name)``
|
||||
|
||||
Register additional view functions to execute for specified URL routes.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue