refactor(auth): remove /api/auth/* handlers to api/auth.py
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from flask import Blueprint, request, jsonify
|
||||
from model.user import User
|
||||
|
||||
loginBP = Blueprint("loginapi", __name__)
|
||||
auth = Blueprint("auth", __name__)
|
||||
|
||||
|
||||
@loginBP.route('/api/auth/login', methods = ['POST'])
|
||||
@auth.route('/login', methods = ['POST'])
|
||||
def login():
|
||||
if request.is_json:
|
||||
req = request.json
|
||||
Reference in New Issue
Block a user