Refactor code structure and remove redundant sections for improved readability and maintainability

This commit is contained in:
2025-06-11 18:48:20 -03:00
parent 2f6eb4f6c1
commit f9c1ece4f0
6 changed files with 4 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
import { Router } from 'express';
import multer from 'multer';
import OrphanagesController from './controllers/OrphanagesController';
import UploadConfig from './config/upload';
import OrphanagesController from './src/controllers/OrphanagesController';
import UploadConfig from './src/config/upload';
const routes = Router();
const upload = multer(UploadConfig);

View File

@@ -4,8 +4,8 @@ import path from 'path';
import 'express-async-errors';
import cors from 'cors';
import './database/connection'; // This line now automatically runs the connection
import errorHandler from './errors/handler';
import './src/database/connection'; // This line now automatically runs the connection
import errorHandler from './src/errors/handler';
import routes from './routes';
const app = express();