17 lines
385 B
Python
17 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)
|