1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Support new API for add-on STDIN support (#207)

* Add function to write data to add-on stdin with API

* Update API Doc

* Add to api

* Update addon.py
This commit is contained in:
Pascal Vizeli
2017-10-03 16:44:48 +02:00
committed by GitHub
parent f167197640
commit bd1c8be1e1
7 changed files with 75 additions and 3 deletions

View File

@@ -104,6 +104,7 @@ class RestAPI(object):
'/addons/{addon}/rebuild', api_addons.rebuild)
self.webapp.router.add_get('/addons/{addon}/logs', api_addons.logs)
self.webapp.router.add_get('/addons/{addon}/logo', api_addons.logo)
self.webapp.router.add_post('/addons/{addon}/stdin', api_addons.stdin)
def register_security(self):
"""Register security function."""