Initial commit

This commit is contained in:
Paul Coral
2025-07-26 17:36:27 +02:00
committed by GitHub
commit 8c4e5ebc31
48 changed files with 14445 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { Controller } from '@nestjs/common';
import { tsRestHandler, TsRestHandler } from '@ts-rest/nest';
import { contracts } from '@my-monorepo/common';
@Controller()
export class HelloController {
@TsRestHandler(contracts)
handler(): unknown {
return tsRestHandler(contracts, {
hello: () => {
return Promise.resolve({
status: 200,
body: {
payload: 'hello',
},
});
},
});
}
}