Skip to content

Instantly share code, notes, and snippets.

@liuliqiang

liuliqiang/fuck.py

Created Nov 18, 2019
Embed
What would you like to do?
fuck you
# -*- coding: utf-8 -*-
from flask import Flask, jsonify
app = Flask(__name__)
# 跨域支持
def after_request(resp):
resp.headers['Access-Control-Allow-Origin'] = '*'
return resp
app.after_request(after_request)
@app.route("/code/check")
def index():
return jsonify({"result":True,"message":"牛逼了!"})
# app.run(port=443, debug=True)
app.run(port=443, debug=True,ssl_context='adhoc')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.