Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect Responses #141

Open
ZeroIntensity opened this issue Jan 29, 2024 · 2 comments
Open

Redirect Responses #141

ZeroIntensity opened this issue Jan 29, 2024 · 2 comments
Assignees
Labels
api This has to do with the Python API (view) feature New feature good first issue An issue that isn't necessarily easy to implement, but not required to be an expert in view.py
Milestone

Comments

@ZeroIntensity
Copy link
Owner

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 ZeroIntensity added good first issue An issue that isn't necessarily easy to implement, but not required to be an expert in view.py feature New feature api This has to do with the Python API (view) labels Jan 29, 2024
@ZeroIntensity ZeroIntensity self-assigned this Feb 6, 2024
ZeroIntensity added a commit that referenced this issue Feb 6, 2024
@ZeroIntensity ZeroIntensity mentioned this issue Apr 8, 2024
@ZeroIntensity ZeroIntensity added this to the Beta Release milestone May 28, 2024
@tallhypnosis
Copy link
Contributor

Is this issue open ?

@ZeroIntensity
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api This has to do with the Python API (view) feature New feature good first issue An issue that isn't necessarily easy to implement, but not required to be an expert in view.py
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants