This commit is contained in:
j 2012-09-06 12:08:30 +02:00
commit 85dc70aae0
14 changed files with 997 additions and 0 deletions

15
oxcd/api.py Normal file
View file

@ -0,0 +1,15 @@
# encoding: utf-8
# vi:si:et:sw=4:sts=4:ts=4
import os
from server import actions, json_response
def init(backend, site, data):
response = {}
return json_response(response)
actions.register(init, cache=False)
def library(backend, site, data):
response = backend.library
return json_response(response)
actions.register(library, cache=True)