1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-15 06:32:16 +00:00
supysonic/api/system.py
spl0k a3588222d0 We "have" a valid license
Some clients stop working after 30 days if the server returns
it doesn't have a license.
2013-07-16 11:53:37 +02:00

14 lines
307 B
Python
Executable File

# coding: utf-8
from flask import request
from web import app
@app.route('/rest/ping.view', methods = [ 'GET', 'POST' ])
def ping():
return request.formatter({})
@app.route('/rest/getLicense.view', methods = [ 'GET', 'POST' ])
def license():
return request.formatter({ 'license': { 'valid': True } })