【FastAPI】Swaggerのパスを変更してみる

コード

from fastapi import FastAPI

app = FastAPI(docs_url="/swagger")

確認

下記を開いてSwaggerにアクセスできればOK。
http://localhost:8000/swagger

以上になります。
お読み頂き、ありがとうございました。