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 1010 "build:public" : " cd public/app && npm run build" ,
1111 "start:public" : " cd public/app && npm run start" ,
1212 "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 " ,
1414 "start" : " node dist/index" ,
1515 "test" : " jest --coverage" ,
1616 "test:dev" : " jest --watchAll" ,
Original file line number Diff line number Diff line change 1717 *
1818 * For further information you can contact legal(at)bitloops.com.
1919 */
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';`
2222
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+ }
2628
27- export { router } ;
29+ export const routes : IRESTFastifyRoute [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments