Skip to content

Commit 4ad8d69

Browse files
committed
Use app.mount
1 parent a34b51d commit 4ad8d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastapi-sqlalchemy/main/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
graphql_app = GraphQL(schema)
77

88
app = FastAPI()
9-
app.add_route("/graphql", graphql_app)
9+
app.mount("/graphql", graphql_app)

0 commit comments

Comments
 (0)