mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 04:26:23 +03:00
Revert "backend: регистрация переведена на классы"
This reverts commit d4a6ad05c0.
This commit is contained in:
@@ -22,8 +22,8 @@ app.config.update(main_settings)
|
||||
db_settings = config_data["db_settings"]
|
||||
app.config.update(db_settings)
|
||||
|
||||
db.init_app(app)
|
||||
admin.init_app(app)
|
||||
db.init_app(app)
|
||||
|
||||
from .admin import ts_admin as ts_admin_blueprint
|
||||
|
||||
|
||||
@@ -8,14 +8,12 @@ main = Blueprint("main", __name__)
|
||||
|
||||
|
||||
@main.route("/")
|
||||
class Index:
|
||||
def get(self):
|
||||
def index():
|
||||
return "Nice!", 200
|
||||
|
||||
|
||||
@main.route("/registration")
|
||||
class Registration:
|
||||
def post(self):
|
||||
@main.route("/registration", methods=["POST"])
|
||||
def registration():
|
||||
data = request.get_json()
|
||||
|
||||
tg_id = data.get("tg_id")
|
||||
|
||||
Reference in New Issue
Block a user