Skip to content

app decorators not working #26

@danielbregler

Description

@danielbregler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions