oxcd/oxcd/api.py
j 5b97b26692 - gzip api response
- dont parse xml on client
- load xml in thread
2012-09-07 13:49:41 +02:00

16 lines
385 B
Python

# 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 = {}
response['tracks'] = backend.tracks
return json_response(response)
actions.register(library, cache=True)