Skip to content

Commit

Permalink
update ResponseFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-yin committed Jan 18, 2024
1 parent 1603a36 commit 3c95809
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/turbo_helper/constants.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import enum

TURBO_STREAM_MIME_TYPE = "text/vnd.turbo-stream.html"


class ResponseFormat(enum.Enum):
HTML = "html"
JSON = "json"
TurboStream = "turbo_stream"
class ResponseFormat:
html = False
json = False
turbo_stream = False

0 comments on commit 3c95809

Please sign in to comment.