diff --git a/src/controllers/ProductController.ts b/src/controllers/ProductController.ts index fc9e3a2..870afdb 100644 --- a/src/controllers/ProductController.ts +++ b/src/controllers/ProductController.ts @@ -1,5 +1,5 @@ import { Request, Response } from 'express'; -import { Product, IProduct } from '../models/Schema'; +import { Product, IProduct } from '../mongoose/Schema'; export async function createProduct(req: Request, res: Response) { try { diff --git a/src/controllers/UserController.ts b/src/controllers/UserController.ts index 7d91158..35c0ec9 100644 --- a/src/controllers/UserController.ts +++ b/src/controllers/UserController.ts @@ -1,7 +1,7 @@ import { Request, Response } from 'express'; import bcrypt from 'bcryptjs'; import jwt from 'jsonwebtoken'; -import { User, IUser } from '../models/Schema'; +import { User, IUser } from '../mongoose/Schema'; import { clearJwtCookie, setJwtCookie } from '../middlewares/checkAuth'; export async function createUser(req: Request, res: Response) { diff --git a/src/models/Schema.ts b/src/mongoose/Schema.ts similarity index 100% rename from src/models/Schema.ts rename to src/mongoose/Schema.ts