Refactoring code for modular approach
This commit is contained in:
@@ -206,7 +206,7 @@ product_service = ProductService()
|
||||
### Step 2: Refactor Router
|
||||
|
||||
```python
|
||||
# products.py
|
||||
# product.py
|
||||
from product_service import product_service
|
||||
|
||||
@router.post("/products", response_model=ProductResponse)
|
||||
|
||||
Reference in New Issue
Block a user