mangalpy/src/routes/root.py
2024-04-28 14:26:38 +10:00

24 lines
608 B
Python

from flask import Blueprint
from flask import current_app
bp = Blueprint("root", __name__, url_prefix="/")
@bp.route("/")
def root():
current_app.db._connect()
return {
"manga": {
"somehashofsomething": {
"title": "Some lewd shit",
"author": "Some weeb",
"chapters_downloaded": [0, 1, 2, 3, 4, 5, 6, 7],
},
"someotherthing": {
"title": "Other lewd shit",
"author": "Other weeb",
"chapters_downloaded": [x for x in range(15)],
},
}
}