Skip to content

Commit

Permalink
chore: add JSON parser and renderer as default to avoid showing brows…
Browse files Browse the repository at this point in the history
…able api
  • Loading branch information
PauloUbirajara committed Apr 28, 2024
1 parent c539d90 commit 5d7da90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions financial_parsing/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@

# Rest Framework
REST_FRAMEWORK = {
"DEFAULT_RENDERER_CLASSES": [
"rest_framework.renderers.JSONRenderer",
],
"DEFAULT_PARSER_CLASSES": [
"rest_framework.parsers.JSONParser",
],
"DEFAULT_AUTHENTICATION_CLASSES": (
"rest_framework_simplejwt.authentication.JWTAuthentication",
),
Expand Down

0 comments on commit 5d7da90

Please sign in to comment.