summaryrefslogtreecommitdiffstats
path: root/api/views/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/views/base.py')
-rw-r--r--api/views/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/views/base.py b/api/views/base.py
new file mode 100644
index 0000000..e9a087d
--- /dev/null
+++ b/api/views/base.py
@@ -0,0 +1,5 @@
+from ninja import NinjaAPI
+
+from api.parser import FormOrJsonParser
+
+api = NinjaAPI(parser=FormOrJsonParser())