mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-13 21:52:18 +00:00
14 lines
250 B
Python
14 lines
250 B
Python
|
# coding: utf-8
|
||
|
|
||
|
from flask import request
|
||
|
from web import app
|
||
|
|
||
|
@app.route('/rest/ping.view')
|
||
|
def ping():
|
||
|
return request.formatter({})
|
||
|
|
||
|
@app.route('/rest/getLicense.view')
|
||
|
def license():
|
||
|
return request.formatter({ 'license': { 'valid': False } })
|
||
|
|