mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[doc] document journal display
This commit is contained in:
parent
021a989c03
commit
d92b8562d0
2 changed files with 8 additions and 1 deletions
|
@ -1608,7 +1608,7 @@ journals:
|
||||||
|
|
||||||
### journals_display()
|
### journals_display()
|
||||||
display:
|
display:
|
||||||
action_help: List journals
|
action_help: Display a journal content
|
||||||
api: GET /journals/<file_name>
|
api: GET /journals/<file_name>
|
||||||
arguments:
|
arguments:
|
||||||
file_name:
|
file_name:
|
||||||
|
|
|
@ -74,6 +74,13 @@ def journals_list(limit=None):
|
||||||
|
|
||||||
|
|
||||||
def journals_display(file_name):
|
def journals_display(file_name):
|
||||||
|
"""
|
||||||
|
Display a journal content
|
||||||
|
|
||||||
|
Argument:
|
||||||
|
file_name
|
||||||
|
"""
|
||||||
|
|
||||||
if not os.path.exists(JOURNALS_PATH):
|
if not os.path.exists(JOURNALS_PATH):
|
||||||
# TODO raise exception
|
# TODO raise exception
|
||||||
return {}
|
return {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue