mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Generate doc at API launch
This commit is contained in:
parent
9938adab93
commit
c6143ead4e
2 changed files with 5 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -27,3 +27,5 @@ pip-log.txt
|
||||||
|
|
||||||
#Mr Developer
|
#Mr Developer
|
||||||
.mr.developer.cfg
|
.mr.developer.cfg
|
||||||
|
|
||||||
|
doc/*.json
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue