[ADD] web: Added database list controller

This commit is contained in:
Dharmang Soni
2016-10-03 18:20:25 +02:00
committed by Pierre Masereel
parent 48f6b8278e
commit ef96bd0669
+9
View File
@@ -695,6 +695,15 @@ class Database(http.Controller):
error = "Master password update error: %s" % e
return self._render_template(error=error)
@http.route('/web/database/list', type='json', auth='none')
def list(self):
"""
Used by Mobile application for listing database
:return: List of databases
:rtype: list
"""
return http.db_list()
class Session(http.Controller):
@http.route('/web/session/get_session_info', type='json', auth="none")