Refactor: Modularize memo.py to 3-layer architecture, Fix tag extraction regex, and Enhance infinite scroll for large screens

This commit is contained in:
leeyj
2026-04-20 11:04:00 +09:00
parent 6fca65eef1
commit ac58e14c8c
10 changed files with 476 additions and 372 deletions
+12
View File
@@ -0,0 +1,12 @@
from flask import Blueprint, request, jsonify # type: ignore
from ..auth import login_required
from ..services.memo_service import MemoService
stats_bp = Blueprint('stats', __name__)
@stats_bp.route('/api/stats/heatmap', methods=['GET'])
@login_required
def get_heatmap_stats():
days = request.args.get('days', 365, type=int)
stats = MemoService.get_heatmap_stats(days)
return jsonify(stats)