It is not possible to return API data for a particular mount point (FS plugin) #1162

pull/2255/head
nicolargo 2023-01-22 12:22:16 +01:00
parent b67c717b3a
commit 1bedd3b80e
1 changed files with 1 additions and 0 deletions

View File

@ -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)