diff options
author | nicolargo <nicolas@nicolargo.com> | 2023-01-22 12:22:16 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2023-01-22 12:22:16 +0100 |
commit | 1bedd3b80eb0dff3b831a664026d4b5049c38d95 (patch) | |
tree | 00f52695a9343332c0f3f865ba4b2d285109f21f | |
parent | b67c717b3af357f72bef8f4847dca4af84576389 (diff) |
It is not possible to return API data for a particular mount point (FS plugin) #1162
-rw-r--r-- | glances/outputs/glances_bottle.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/glances/outputs/glances_bottle.py b/glances/outputs/glances_bottle.py index 5c475a7f..31933fac 100644 --- a/glances/outputs/glances_bottle.py +++ b/glances/outputs/glances_bottle.py @@ -160,6 +160,7 @@ class GlancesBottle(object): '/api/%s/<plugin>/<item>/history/<nb:int>' % self.API_VERSION, method="GET", callback=self._api_item_history ) self._app.route('/api/%s/<plugin>/<item>/<value>' % self.API_VERSION, method="GET", callback=self._api_value) + self._app.route('/api/%s/<plugin>/<item>/<value:path>' % self.API_VERSION, method="GET", callback=self._api_value) bindmsg = 'Glances RESTful API Server started on {}api/{}/'.format(self.bind_url, self.API_VERSION) logger.info(bindmsg) |