Skip to content

Instantly share code, notes, and snippets.

@Porter97
Last active March 3, 2020 20:01
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 Porter97/c9ec576b8a7935a08475325100f0b0ea to your computer and use it in GitHub Desktop.
Save Porter97/c9ec576b8a7935a08475325100f0b0ea to your computer and use it in GitHub Desktop.
#...
# Index
@main.route('/')
def index():
token = current_user.stream_user_token()
return render_template('index.html', token=token, user=current_user)
# Notifications
@main.route('/notifications')
def notifications():
token = current_user.stream_user_token()
return render_template('notifications.html', token=token, user=current_user)
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment