2019-10-05 06:25:01 +00:00
|
|
|
from flask import Blueprint, request, jsonify, session
|
2019-10-05 06:29:43 +00:00
|
|
|
import models
|
2019-10-05 06:25:01 +00:00
|
|
|
|
|
|
|
auth = Blueprint('auth', __name__, url_prefix='/auth')
|
|
|
|
|
2019-10-05 06:29:43 +00:00
|
|
|
@auth.route('/signup', methods=['POST'])
|
2019-10-05 06:25:01 +00:00
|
|
|
def auth_signup():
|
|
|
|
response = {"message": "signup post"}
|
|
|
|
return jsonify(response)
|
|
|
|
|
2019-10-05 06:29:43 +00:00
|
|
|
@auth.route('/login', methods=['POST'])
|
2019-10-05 06:25:01 +00:00
|
|
|
def auth_login():
|
|
|
|
response = {"message": "login post"}
|
|
|
|
return jsonify(response)
|