Files
myapp-full/myapp/ns_api/page.py
2019-10-27 19:40:03 +03:00

22 lines
449 B
Python

__author__ = 'RemiZOffAlex'
__copyright__ = '(c) RemiZOffAlex'
__license__ = 'MIT'
__email__ = 'remizoffalex@mail.ru'
__url__ = 'https://remizoffalex.ru'
from . import jsonrpc, login_required
from .. import models
@jsonrpc.method('page.update(title=str, text=str)')
@login_required
def page_update(title, text):
"""
Обновить статью
"""
result = {
"title": title,
"text": text
}
return result