Skip to content

Instantly share code, notes, and snippets.

@Kd-Here

Kd-Here/auth.py Secret

Created March 4, 2023 09:52
Show Gist options
  • Save Kd-Here/62d24364878c53b4551a293b79a003d7 to your computer and use it in GitHub Desktop.
Save Kd-Here/62d24364878c53b4551a293b79a003d7 to your computer and use it in GitHub Desktop.
from flask import Blueprint,render_template
auth = Blueprint('auth',__name__)
@auth.route('/login')
def login():
return render_template('login.html',data_from_backend='testing data from backend')
@auth.route('/sign-up')
def singin():
return render_template('sign_up.html')
@auth.route('/logout')
def logout():
return "<h2>Logout</h2>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment