Generate doc at API launch

This commit is contained in:
Kload 2013-07-03 12:28:18 +00:00
parent 9938adab93
commit c6143ead4e
2 changed files with 5 additions and 0 deletions

2
.gitignore vendored
View file

@ -27,3 +27,5 @@ pip-log.txt
#Mr Developer #Mr Developer
.mr.developer.cfg .mr.developer.cfg
doc/*.json

View file

@ -163,6 +163,9 @@ def main():
global action_dict global action_dict
global api global api
# Generate API doc
os.system('python ./generate_api_doc.py')
# Register API doc service # Register API doc service
api.register('ALL', '/api', api_doc) api.register('ALL', '/api', api_doc)