mirror of
https://github.com/sotam0316/brain_dogfood.git
synced 2026-04-25 03:48:38 +09:00
Refactor: Modularize memo.py to 3-layer architecture, Fix tag extraction regex, and Enhance infinite scroll for large screens
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user