mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-14 18:13:02 -06:00
basic main.py and routes added
This commit is contained in:
23
flash_auth_app/project/auth.py
Normal file
23
flash_auth_app/project/auth.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from flask import Blueprint
|
||||
from . import db
|
||||
|
||||
auth = Blueprint('auth', __name__)
|
||||
|
||||
'''
|
||||
FIXME this will have to be revisited later with added funcitonality,
|
||||
as right now `login`, `signup`, and `logout` only return text
|
||||
|
||||
There will also be routes for handling POST requests from login and signup
|
||||
'''
|
||||
|
||||
@auth.route('/login')
|
||||
def login():
|
||||
return 'Login'
|
||||
|
||||
@auth.route('/signup')
|
||||
def signup():
|
||||
return 'Signup'
|
||||
|
||||
@auth.route('/logout')
|
||||
def logout():
|
||||
return 'Logout'
|
||||
Reference in New Issue
Block a user