NestJS
Scalable backend TypeScript
newt-app uses NestJS as the backend framework, running inside the apps/api package of your monorepo.
API Routes
Your Next.js app proxies /api/* requests to the NestJS server, so you can call your API without worrying about CORS.
@Controller('hello')
export class HelloController {
@Get()
hello() {
return { message: 'Hello from NestJS' };
}
}