From 34d688cfb264cad2a53434f804de7683a17c0c46 Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Thu, 26 Dec 2024 04:31:21 +0600 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=87=D0=B8=D0=BD=D0=BA=D0=B0=20se?= =?UTF-8?q?nd=5Fnatification3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index 98a3639..214d19c 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -90,7 +90,7 @@ def update_employee(employee_id: int, data: dict, db: Session = Depends(get_db)) # Request endpoints @app.post("/api/requests/") -def create_request( +async def create_request( request: request_models.RequestCreate, db: Session = Depends(get_db) ): # Create request in database