July 3rd - Review and optimize codes

This commit is contained in:
2026-07-03 14:38:49 -04:00
parent d0b1b7ae23
commit 4c275fc0e5
16 changed files with 353 additions and 136 deletions
+5 -2
View File
@@ -50,7 +50,10 @@ def register_api(app):
from app.api.comments import bp as comments_bp
api_bp.register_blueprint(comments_bp)
from app.api.devices import bp as devices_bp
api_bp.register_blueprint(devices_bp)
# NOTE: device registration lives on the auth blueprint
# (POST /api/v1/devices/register in app/api/auth.py) and writes to the
# canonical api_device_tokens table (model DeviceToken). A former duplicate
# `api_devices` blueprint wrote to the orphaned device_registrations table
# and was removed — see CLAUDE.md rule 84.
app.register_blueprint(api_bp)