Merge branch 'maintenance' into devel

# Conflicts:
#	src/octoprint/server/views.py
#	src/octoprint/templates/dialogs/settings/api.jinja2
This commit is contained in:
Gina Häußge committed 2019-02-01 11:12:29 +01:00
commit 604d2f7811
7 files changed
+136 -11

No files matched your search

+8
View File
@@ -1328,6 +1328,14 @@ 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::
If you want your route to support CORS if it's enabled in OctoPrint, your `RequestHandler <http://tornado.readthedocs.org/en/branch4.0/web.html#request-handlers>`_
needs to implement the :class:`~octoprint.server.util.tornado.CorsSupportMixin` for this to work. Note that all of
:class:`~octoprint.server.util.tornado.LargeResponseHandler`, :class:`~octoprint.server.util.tornado.UrlProxyHandler`,
:class:`~octoprint.server.util.tornado.StaticDataHandler` and :class:`~octoprint.server.util.tornado.DeprecatedEndpointHandler`
already implement this mixin.
.. important::
Implementing this hook will make your plugin require a restart of OctoPrint for enabling/disabling it fully.