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

app decorators not working #26

Open
danielbregler opened this issue Dec 10, 2020 · 0 comments · May be fixed by #49
Open

app decorators not working #26

danielbregler opened this issue Dec 10, 2020 · 0 comments · May be fixed by #49

Comments

@danielbregler
Copy link

Hi,

first of all thank you for this essential extension to FastAPI !
I have a problem that might be to the lack of a functional example only.
I can not get any of the decorators to work together with extending the original app with VersionedFastAPI

@app.on_event("startup")
@repeat_every

the code is structured like in your example, where VersionedFastAPI(app) is the last line after all the endpoints:

app = FastAPI()
... some endpoints...
app = VersionedFastAPI(app)

Thank you very much for your help

@pduggi-cf pduggi-cf linked a pull request Jun 19, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant