init commit

This commit is contained in:
2025-11-02 01:14:41 -05:00
commit 7bf81109b3
31 changed files with 2387 additions and 0 deletions

17
app/blueprints/char.py Normal file
View File

@@ -0,0 +1,17 @@
from flask import Blueprint, g, jsonify, current_app
from typing import cast
from app.utils.typed_flask import CoCFlask
# from app.services.appwrite_client import AppWriteClient
# type cast flask to my custom flask app so the app.api methods are available in the IDE / typed correctly.
app = cast(CoCFlask,current_app)
# blueprint def
char_bp = Blueprint("char", __name__, url_prefix="/char")
@char_bp.route("/", methods=["GET", "POST"])
def char():
return app.api.ok({"user":g.appwrite_user})