first commit

This commit is contained in:
CHIEFSOFT\ameye
2025-03-20 20:59:29 -04:00
commit e77edb9b45
107 changed files with 2257 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# app/middlewares/request_validator.py
from flask import request
from app.helpers.response_helper import ResponseHelper
def validate_json():
"""Ensure request has valid JSON"""
if not request.is_json:
return ResponseHelper.error(
message="Request must be JSON",
status_code=415
)