summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nfsw/io.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/nfsw/io.py b/nfsw/io.py
index 3e8bb4c..0600b3f 100644
--- a/nfsw/io.py
+++ b/nfsw/io.py
@@ -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
+ }