diff --git a/examples/python/fastapi/postgres/routes.py b/examples/python/fastapi/postgres/routes.py index d7e36de..b9a7c73 100644 --- a/examples/python/fastapi/postgres/routes.py +++ b/examples/python/fastapi/postgres/routes.py @@ -91,7 +91,6 @@ def get_list_v1_categories(conn=Depends(db_connection)): @router.post('/v1/categories', status_code = status.HTTP_204_NO_CONTENT) - def post_v1_categories(payload: CreateCategoryDto, conn=Depends(db_connection)): try: with conn: diff --git a/src/templates/routes.py.ejs b/src/templates/routes.py.ejs index 176a40e..9db2638 100644 --- a/src/templates/routes.py.ejs +++ b/src/templates/routes.py.ejs @@ -253,7 +253,7 @@ def <%- pythonMethodName %>(<%- methodArgs.join(', ') %>): %> @router.post('<%- path %>', status_code = status.HTTP_204_NO_CONTENT) -<%# LATER: deal with methodArgs %> +<%# LATER: deal with methodArgs -%> def <%- pythonMethodName %>(payload: <%- model %>, conn=Depends(db_connection)): try: with conn: