diff options
-rw-r--r-- | nfsw/io.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -10,3 +10,13 @@ bp = Blueprint('io', __name__) @login_required def io(): return render_template('io.html') + + +@bp.route('/io/query', methods=['POST']) +@login_required_ajax +def query(): + cmd = request.get_data(as_text=True) + + return { + 'ans': cmd + } |