Skip to content

Commit 29ca7a3

Browse files
committed
v0.0.4
1 parent 31db204 commit 29ca7a3

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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",

src/shared/infra/rest/fastify/api/index.tst renamed to src/shared/infra/rest/fastify/router/routes.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
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[] = [];

0 commit comments

Comments
 (0)