File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/shared/infra/rest/fastify/router Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 10
10
"build:public" : " cd public/app && npm run build" ,
11
11
"start:public" : " cd public/app && npm run start" ,
12
12
"build" : " rimraf ./dist && tsc" ,
13
- "start:dev" : " NODE_ENV=development ./node_modules/.bin/env-cmd -f .env.dev nodemon " ,
13
+ "start:dev" : " NODE_ENV=development ./node_modules/.bin/env-cmd --silent - f .env.dev nodemon " ,
14
14
"start" : " node dist/index" ,
15
15
"test" : " jest --coverage" ,
16
16
"test:dev" : " jest --watchAll" ,
Original file line number Diff line number Diff line change 17
17
*
18
18
* For further information you can contact legal(at)bitloops.com.
19
19
*/
20
- import { FastifyInstance } from ' fastify ' ;
21
- // @TEMPLATE import { ${camelCase(BOUNDED_CONTEXT)}Router } from '../../../../BoundedContexts/ ${kebab(BOUNDED_CONTEXT)}/infra/rest/fastify/routes';
20
+ import { BaseFastifyController } from '../models/BaseFastifyController ' ;
21
+ // @TEMPLATE ` import { ${camelCase(USE_CASE_NAME)}Controller } from '../../../../../../bounded-contexts/ ${kebab(BOUNDED_CONTEXT)}/${kebab(MODULE)}/use-cases/${kebab(USE_CASE_NAME)/index';`
22
22
23
- const router = async (fastify: FastifyInstance, _opts: any) => {
24
- // @TEMPLATE fastify.register(${camelCase(BOUNDED_CONTEXT)}Router, { prefix: '/${kebab(BOUNDED_CONTEXT)}' });
25
- };
23
+ interface IRESTFastifyRoute {
24
+ method : string ;
25
+ url : string ;
26
+ controller : BaseFastifyController ;
27
+ }
26
28
27
- export { router } ;
29
+ export const routes : IRESTFastifyRoute [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments