We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@app.api.get
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Describe the bug
import reflex as rx class State(rx.State): """The app state.""" ... def index() -> rx.Component: gotten_app = rx.utils.prerequisites.get_app().app # pyright: ignore [reportAttributeAccessIssue] @gotten_app.api.get("/foo") def foo(): return {"hi": "mom"} # Welcome Page (Index) return rx.container( rx.heading("Hello, World!"), rx.logo(), ) app = rx.App() app.add_page(index)
Expected behavior The code above installs an endpoint at http://localhost:8000/foo on 0.7.8, but on 0.7.9a1, it does not
http://localhost:8000/foo
Specifics (please complete the following information):
The text was updated successfully, but these errors were encountered:
ENG-5624 FastAPI removal breaks `@app.api.get` usage
Sorry, something went wrong.
adhami3310
No branches or pull requests
Describe the bug
Expected behavior
The code above installs an endpoint at
http://localhost:8000/foo
on 0.7.8, but on 0.7.9a1, it does notSpecifics (please complete the following information):
The text was updated successfully, but these errors were encountered: