Skip to content

Commit fa7fa93

Browse files
committed
folders & file names to Services
1 parent 96a3cc3 commit fa7fa93

13 files changed

+8
-9
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
This project is a web application developed using Node.js v16.20.1. It follows the Model-View-Controller (MVC) architectural pattern, providing a structured and modular approach to building web applications.
1010

11-
1211
## Development Environment Setup
1312

1413
To set up the development environment for this project, follow these steps:
@@ -62,7 +61,7 @@ STRIPE_TOKEN=sk_text_z&&2DbCJa9d3gZkxFwJdE$&hHbRe47KHxAF%&N#qRVx*zVFG$W
6261
| Get Product By Query | `/api/products/search` | Get |
6362
| Get Product By Id | `/api/products/:productId` | Get |
6463
| Edit Product Info | `/api/products/update/:productId` | Put |
65-
| Hide Product | `/api/products/hide/:productId` | Put |
64+
| Delete Product | `/api/products/delete/:productId` | Put |
6665

6766
[Postman Documentation](https://documenter.getpostman.com/view/21643141/2s93sXcaLf#da18f92d-0285-461d-86d8-af8f93f4b079)
6867

server/Controllers/commentController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import commentService from '../View/commentView.js';
1+
import commentService from '../Service/commentService.js';
22
// function to check ownership
33
import Comment from '../Models/commentModel.js';
44
import isResourceOwner from '../helpers/isOwner.js';

server/Controllers/productController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import productService from '../View/productView.js';
1+
import productService from '../Service/productService.js';
22

33
const productController = {
44
getProductById,

server/Controllers/purchasesController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import purchaseService from '../View/purchasesView.js';
1+
import purchaseService from '../Service/purchasesService.js';
22

33
const purchaseController = {
44
createPurchase,

server/Controllers/responsesController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import responsesActions from '../View/responsesView.js';
1+
import responsesActions from '../Service/responsesService.js';
22
import Response from '../Models/responsesModel.js';
33
// function to check ownership
44
import isResourceOwner from '../helpers/isOwner.js';

server/Controllers/shopingCartController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import cartService from '../View/shopingCartView.js';
1+
import cartService from '../Service/shopingCartService.js';
22
// function to check ownership
33
import isResourceOwner from '../helpers/isOwner.js';
44
import Cart from '../Models/shopinCartModel.js';

server/Controllers/usersControllers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import userService from '../View/usersViews.js';
1+
import userService from '../Service/usersService.js';
22

33
const usersController = {
44
signIn,

0 commit comments

Comments
 (0)