bluprints, schemas,helpers and routes

This commit is contained in:
VivianDee
2025-03-20 17:46:34 +01:00
commit aafa9992e3
55 changed files with 1847 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
)