15 lines
355 B
Python
15 lines
355 B
Python
from flask import jsonify
|
|
from flask import render_template
|
|
|
|
from accounts import accounts
|
|
|
|
@accounts.route('/register', methods=['GET'])
|
|
def sign_up():
|
|
return render_template('registration.html')
|
|
|
|
@accounts.route('/register', methods=['POST'])
|
|
def register():
|
|
# Registration logic
|
|
return jsonify({"message": "Registration successful"}), 201
|
|
|