Skip to content

Missing @Text_only decorator #55

Description

@chiond

There is no way to return plain text from a end point (@no_template seams to be dedicated to redirect...)
Here is my dream @text_only decorator

@action(route="/test")
@text_only()
def test(request):
    return "this is just a text to be returned as text/plain content"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions