Add in beginings of auth system
This commit is contained in:
33
src/auth.py
Normal file
33
src/auth.py
Normal file
@@ -0,0 +1,33 @@
|
||||
from flask import Blueprint
|
||||
from user_model import User
|
||||
from main import db
|
||||
|
||||
auth = Blueprint("auth_api", __name__)
|
||||
|
||||
@auth.route("/login")
|
||||
def login(self):
|
||||
return
|
||||
|
||||
@auth.route("/logout")
|
||||
def logout(self):
|
||||
return
|
||||
|
||||
@auth.route("/user")
|
||||
def get_current_user(self):
|
||||
return
|
||||
|
||||
@auth.route("/user", methods=["POST"])
|
||||
def create_user(self):
|
||||
return
|
||||
|
||||
@auth.route("/user/<user_id>", methods=["POST"])
|
||||
def update_user(self):
|
||||
return
|
||||
|
||||
@auth.route("/user/<user_id>", methods=["DELETE"])
|
||||
def delete_user(self):
|
||||
return
|
||||
|
||||
@auth.route("/user/<user_id>")
|
||||
def get_user(self):
|
||||
return
|
||||
Reference in New Issue
Block a user