Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Last active September 3, 2016 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/f8b8ff881b6cba2b11b222e38486b145 to your computer and use it in GitHub Desktop.
Save LarsBergqvist/f8b8ff881b6cba2b11b222e38486b145 to your computer and use it in GitHub Desktop.
Flask with no authorization
@app.route('/api/secret')
def api_secret():
return jsonify({'message':get_secret_message()})
@app.route('/')
def index():
return render_template('index.html', message=get_secret_message())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment