add init
This commit is contained in:
parent
3557134ab2
commit
5617c23659
3 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,7 @@ from twisted.internet import reactor
|
|||
|
||||
from backend import Backend
|
||||
from server import Server
|
||||
import api
|
||||
|
||||
from version import __version__
|
||||
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
from server import actions, json_response
|
||||
|
||||
def init(backend, site, data):
|
||||
response = {}
|
||||
return json_response(response)
|
||||
actions.register(init, cache=False)
|
||||
|
||||
def echo(backend, site, data):
|
||||
return json_response(data)
|
||||
|
|
|
@ -46,7 +46,7 @@ class ApiActions(dict):
|
|||
properties = {}
|
||||
def __init__(self):
|
||||
|
||||
def api(site, data):
|
||||
def api(backend, site, data):
|
||||
'''
|
||||
returns list of all known api actions
|
||||
param data {
|
||||
|
|
Loading…
Reference in a new issue