aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/requests.py
blob: 00e9b351cb7869dc091ae7e5e9b5221eabd5f257 (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 dict(request.form) or {}