Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- """
- Spyder Editor
- This is a temporary script file.
- """
- from flask import Flask, render_template, Response, request, redirect, url_for, jsonify
- app = Flask(__name__)
- @app.route("/backend/ajax_caller", methods=['POST'])
- def ajax_caller():
- return jsonify({"Classification" : "Classification!!!!!"})
- if __name__ == '__main__':
- app.run(host="localhost")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement