14 lines
330 B
Python
14 lines
330 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():
|
|
return jsonify({'message': 'Registration successful'}), 201
|
|
|