aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/requests.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-17 17:02:33 -0500
committerFrederick Muriuki Muriithi2024-06-17 17:02:33 -0500
commit8f287bd7ef19ff309b6ced6a4c672d2f60229ad4 (patch)
tree7b938ad023f23e17a65f3b0aba96f415531b9cdf /gn_auth/auth/requests.py
parent0306b1e7af753a2fdd3ca4e1b5c2ee378c8c4a3a (diff)
downloadgn-auth-8f287bd7ef19ff309b6ced6a4c672d2f60229ad4.tar.gz
Fix mypy errors
Diffstat (limited to 'gn_auth/auth/requests.py')
-rw-r--r--gn_auth/auth/requests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gn_auth/auth/requests.py b/gn_auth/auth/requests.py
new file mode 100644
index 0000000..6301029
--- /dev/null
+++ b/gn_auth/auth/requests.py
@@ -0,0 +1,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 {}