0xcd
This commit is contained in:
commit
85dc70aae0
14 changed files with 997 additions and 0 deletions
15
oxcd/api.py
Normal file
15
oxcd/api.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue