mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-25 10:12:55 +03:00
It is not possible to return API data for a particular mount point (FS plugin) #1162
This commit is contained in:
parent
b67c717b3a
commit
1bedd3b80e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user