aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/requests.py
blob: 630102983725bdd6e26b4eb11b9457e746dfc494 (plain)
1
2
3
4
5
6
"""Utilities to deal with requests."""
from flask import request

def request_json() -> dict:
    """Retrieve the JSON sent in a request."""
    return request.json or {}