This commit is contained in:
j 2011-12-26 18:12:33 +05:30
parent 3557134ab2
commit 5617c23659
3 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,7 @@ from twisted.internet import reactor
from backend import Backend
from server import Server
import api
from version import __version__

View file

@ -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)

View file

@ -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 {