Advertisement
Guest User

Untitled

a guest
May 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. """
  3. Spyder Editor
  4.  
  5. This is a temporary script file.
  6. """
  7. from flask import Flask, render_template, Response, request, redirect, url_for, jsonify
  8. app = Flask(__name__)
  9.  
  10. @app.route("/backend/ajax_caller", methods=['POST'])
  11. def ajax_caller():
  12. return jsonify({"Classification" : "Classification!!!!!"})
  13.  
  14. if __name__ == '__main__':
  15. app.run(host="localhost")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement