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()
|
||||
display:
|
||||
action_help: List journals
|
||||
action_help: Display a journal content
|
||||
api: GET /journals/<file_name>
|
||||
arguments:
|
||||
file_name:
|
||||
|
|
|
@ -74,6 +74,13 @@ def journals_list(limit=None):
|
|||
|
||||
|
||||
def journals_display(file_name):
|
||||
"""
|
||||
Display a journal content
|
||||
|
||||
Argument:
|
||||
file_name
|
||||
"""
|
||||
|
||||
if not os.path.exists(JOURNALS_PATH):
|
||||
# TODO raise exception
|
||||
return {}
|
||||
|
|
Loading…
Add table
Reference in a new issue