ZeroIntensity / view.py

The Batteries-Detachable Web Framework
https://view.zintensity.dev
MIT License
206 stars 15 forks source link

Redirect Responses #141

Open ZeroIntensity opened 5 months ago

ZeroIntensity commented 5 months ago

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

tallhypnosis commented 1 month ago

Is this issue open ?

ZeroIntensity commented 1 month ago

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