hassio/api/__init__.py
def _register_addons(self) -> None:
        """Register Add-on functions."""
        api_addons = APIAddons()
        api_addons.coresys = self.coresys

        self.webapp.add_routes(
            [
                web.get("/addons", api_addons.list),
                web.post("/addons/reload", api_addons.reload),
                web.get("/addons/{addon}/info", api_addons.info),
                web.post("/addons/{addon}/install", api_addons.install),
                web.post("/addons/{addon}/uninstall", api_addons.uninstall),
                web.post("/addons/{addon}/start", api_addons.start),
                web.post("/addons/{addon}/stop", api_addons.stop),
                web.post("/addons/{addon}/restart", api_addons.restart),
                web.post("/addons/{addon}/update", api_addons.update),
                web.post("/addons/{addon}/options", api_addons.options),
                web.post("/addons/{addon}/rebuild", api_addons.rebuild),
                web.get("/addons/{addon}/logs", api_addons.logs),
                web.get("/addons/{addon}/icon", api_addons.icon),
                web.get("/addons/{addon}/logo", api_addons.logo),
                web.get("/addons/{addon}/changelog", api_addons.changelog),
                web.post("/addons/{addon}/stdin", api_addons.stdin),
                web.post("/addons/{addon}/security", api_addons.security),
                web.get("/addons/{addon}/stats", api_addons.stats),
            ]
        )
Register Add-on functions.
Register Add-on functions.
Register Add - on functions .
def _register_addons(self) -> None:
        api_addons = APIAddons()
        api_addons.coresys = self.coresys
        self.webapp.add_routes(
            [
                web.get("/addons", api_addons.list),
                web.post("/addons/reload", api_addons.reload),
                web.get("/addons/{addon}/info", api_addons.info),
                web.post("/addons/{addon}/install", api_addons.install),
                web.post("/addons/{addon}/uninstall", api_addons.uninstall),
                web.post("/addons/{addon}/start", api_addons.start),
                web.post("/addons/{addon}/stop", api_addons.stop),
                web.post("/addons/{addon}/restart", api_addons.restart),
                web.post("/addons/{addon}/update", api_addons.update),
                web.post("/addons/{addon}/options", api_addons.options),
                web.post("/addons/{addon}/rebuild", api_addons.rebuild),
                web.get("/addons/{addon}/logs", api_addons.logs),
                web.get("/addons/{addon}/icon", api_addons.icon),
                web.get("/addons/{addon}/logo", api_addons.logo),
                web.get("/addons/{addon}/changelog", api_addons.changelog),
                web.post("/addons/{addon}/stdin", api_addons.stdin),
                web.post("/addons/{addon}/security", api_addons.security),
                web.get("/addons/{addon}/stats", api_addons.stats),
            ]
        )
def _register_addons ( self ) -> None : api_addons = APIAddons ( ) api_addons . coresys = self . coresys self . webapp . add_routes ( [ web . get ( "/addons" , api_addons . list ) , web . post ( "/addons/reload" , api_addons . reload ) , web . get ( "/addons/{addon}/info" , api_addons . info ) , web . post ( "/addons/{addon}/install" , api_addons . install ) , web . post ( "/addons/{addon}/uninstall" , api_addons . uninstall ) , web . post ( "/addons/{addon}/start" , api_addons . start ) , web . post ( "/addons/{addon}/stop" , api_addons . stop ) , web . post ( "/addons/{addon}/restart" , api_addons . restart ) , web . post ( "/addons/{addon}/update" , api_addons . update ) , web . post ( "/addons/{addon}/options" , api_addons . options ) , web . post ( "/addons/{addon}/rebuild" , api_addons . rebuild ) , web . get ( "/addons/{addon}/logs" , api_addons . logs ) , web . get ( "/addons/{addon}/icon" , api_addons . icon ) , web . get ( "/addons/{addon}/logo" , api_addons . logo ) , web . get ( "/addons/{addon}/changelog" , api_addons . changelog ) , web . post ( "/addons/{addon}/stdin" , api_addons . stdin ) , web . post ( "/addons/{addon}/security" , api_addons . security ) , web . get ( "/addons/{addon}/stats" , api_addons . stats ) , ] )
Register Add-on functions.
Register Add - on functions .
"""Register Add-on functions."""
self