1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-13 21:52:18 +00:00
supysonic/api/system.py

14 lines
307 B
Python
Raw Normal View History

2012-10-13 09:29:48 +00:00
# coding: utf-8
from flask import request
from web import app
2012-11-22 13:51:43 +00:00
@app.route('/rest/ping.view', methods = [ 'GET', 'POST' ])
2012-10-13 09:29:48 +00:00
def ping():
return request.formatter({})
2012-11-22 13:51:43 +00:00
@app.route('/rest/getLicense.view', methods = [ 'GET', 'POST' ])
2012-10-13 09:29:48 +00:00
def license():
return request.formatter({ 'license': { 'valid': True } })
2012-10-13 09:29:48 +00:00