July 3rd - Review and optimize codes
This commit is contained in:
+5
-2
@@ -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)
|
||||
Reference in New Issue
Block a user