22 lines
449 B
Python
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
|