Docs for {Reload|Restart}NeedingPlugin

This commit is contained in:
Gina Häußge committed 2016-10-14 14:15:33 +02:00
1 parent ee92fc6907
commit f7eb12a3ee
5 files changed
+31 -2

No files matched your search

+8
View File
@@ -732,6 +732,10 @@ octoprint.server.http.bodysize
The path of the route will be prefixed by OctoPrint with ``/plugin/<plugin identifier>/`` (if the path already begins
with a ``/`` that will be stripped first).
.. important::
Implementing this hook will make your plugin require a restart of OctoPrint for enabling/disabling it fully.
**Example**
The following plugin example sets the maximum body size for ``POST`` requests against four custom URLs to 100, 200,
@@ -779,6 +783,10 @@ octoprint.server.http.routes
view of the blueprint will thus not be reachable since processing of the request will directly be handed over
to your defined handler class.
.. important::
Implementing this hook will make your plugin require a restart of OctoPrint for enabling/disabling it fully.
**Example**
The following example registers two new routes ``/plugin/add_tornado_route/download`` and ``/plugin/add_tornado_route/forward``