browser-go-api/auth/auth.py
2019-10-04 23:25:01 -07:00

14 lines
No EOL
400 B
Python

from flask import Blueprint, request, jsonify, session
from ..models.User import User
auth = Blueprint('auth', __name__, url_prefix='/auth')
@api.route('/signup', methods=['POST'])
def auth_signup():
response = {"message": "signup post"}
return jsonify(response)
@api.route('/login', methods=['POST'])
def auth_login():
response = {"message": "login post"}
return jsonify(response)