mercore starter

This commit is contained in:
CHIEFSOFT\ameye
2025-06-22 20:45:07 -04:00
commit 987b7d6383
114 changed files with 6223 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
from flask import request, jsonify
def enforce_json():
"""Middleware to enforce JSON Content-Type for incoming requests"""
if request.method in ["POST", "PUT", "PATCH"] and request.content_type != "application/json":
return jsonify({"message": "Invalid request"}), 400