Add auto-generation of exporter docs

This commit is contained in:
JonnyWong16 2020-10-09 00:49:17 -07:00
parent 3be9c84f2b
commit e6c8bd0c13
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 124 additions and 0 deletions

View file

@ -6822,3 +6822,9 @@ class WebInterface(object):
return {'result': 'success', 'message': 'Export deleted successfully.'}
else:
return {'result': 'error', 'message': 'Failed to delete export.'}
@cherrypy.expose
@requireAuth(member_of("admin"))
def export_docs(self, **kwargs):
return '<pre>' + exporter.build_export_docs() + '</pre>'