genomic-medicine-sweden / docker-sc2reporter

Dockerized version of the sc2reporter program.
GNU General Public License v2.0
0 stars 1 forks source link

Unable to log in locally #155

Closed talnor closed 9 months ago

talnor commented 10 months ago

API can't find its own open API file?

Fattigman commented 9 months ago

This is solved in #162 With

def create_api(app: FastAPI):
    @app.get(app.root_path + "/openapi.json")
    def custom_swagger_ui_html():
        return app.openapi()

Per this issue: https://github.com/tiangolo/fastapi/issues/4211