Skip to content

Commit b7f6635

Browse files
committed
fix: solves presenter path
1 parent 922fe2e commit b7f6635

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

babel.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"@domain": "./src/domain",
2424
"@core": "./src/core",
2525
"@infra": "./src/infra",
26-
"@application": "./src/application"
26+
"@application": "./src/application",
27+
"@presenter":"./src/presenter"
2728
}
2829
}
2930
]

src/infra/http/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import 'reflect-metadata';
22
import 'express-async-errors';
33
import '@shared/container';
44

5+
import { routes } from '@presenter/routes';
56
import express from 'express';
67
import helmet from 'helmet';
78
import morgan from 'morgan';
8-
import { routes } from 'presenter/routes';
99

1010
const app = express();
1111

src/presenter/factories/CustomerControllers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RegisterCustomerController } from 'presenter/controllers/RegisterCustomerController';
1+
import { RegisterCustomerController } from '@presenter/controllers/RegisterCustomerController';
22

33
const registerCustomerController = new RegisterCustomerController();
44

src/presenter/routes/customersRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ExpressAdapter } from '@infra/http/adapters/ExpressAdapter';
2+
import { registerCustomerController } from '@presenter/factories/CustomerControllers';
23
import { Router } from 'express';
3-
import { registerCustomerController } from 'presenter/factories/CustomerControllers';
44

55
const customersRouter = Router();
66

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"@core/*": ["core/*"],
2424
"@infra/*": ["infra/*"],
2525
"@shared/*": ["shared/*"],
26-
"@config/*": ["config/*"]
26+
"@config/*": ["config/*"],
27+
"@presenter/*":["presenter/*"]
2728
}
2829
}
2930
}

0 commit comments

Comments
 (0)