|
|
@ -38,13 +38,19 @@ def file(): |
|
|
|
return c |
|
|
|
return c |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@plugins.route('/list', methods=['GET', 'POST']) |
|
|
|
@plugins.route('/list', methods=['GET']) |
|
|
|
def list(): |
|
|
|
def list(): |
|
|
|
typeVal = request.args.get('type', '0') |
|
|
|
typeVal = request.args.get('type', '0') |
|
|
|
data = plugin_api.plugin_api().getPluginList(typeVal, 1) |
|
|
|
data = plugin_api.plugin_api().getPluginList(typeVal, 1) |
|
|
|
return public.getJson(data) |
|
|
|
return public.getJson(data) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@plugins.route('/index_list', methods=['GET']) |
|
|
|
|
|
|
|
def indexList(): |
|
|
|
|
|
|
|
data = plugin_api.plugin_api().getIndexList() |
|
|
|
|
|
|
|
return public.getJson(data) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@plugins.route('/install', methods=['POST']) |
|
|
|
@plugins.route('/install', methods=['POST']) |
|
|
|
def install(): |
|
|
|
def install(): |
|
|
|
|
|
|
|
|
|
|
|