view.py icon indicating copy to clipboard operation
view.py copied to clipboard

Redirect Responses

Open ZeroIntensity opened this issue 1 year ago • 2 comments

Feature description

View needs a simple way to return a redirect to the user. For example, FastAPI has RedirectResponse.

Feature example API

from view import new_app, redirect

app = new_app()

@app.get("/index")
def index():
    return redirect("/")

app.run()

Anything else?

No response

ZeroIntensity avatar Jan 29 '24 03:01 ZeroIntensity

Is this issue open ?

tallhypnosis avatar Jun 02 '24 08:06 tallhypnosis

Nope, sorry! This has already been implemented on a separate branch, just not merged yet.

ZeroIntensity avatar Jun 02 '24 17:06 ZeroIntensity