From 530e832ad04d5d0f82a99980d7b2a4530d493344 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 18 Sep 2025 14:05:17 +0200 Subject: [PATCH] Create hello.ts --- nextjs/ssr/pages/api/hello.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nextjs/ssr/pages/api/hello.ts diff --git a/nextjs/ssr/pages/api/hello.ts b/nextjs/ssr/pages/api/hello.ts new file mode 100644 index 0000000..6ab55af --- /dev/null +++ b/nextjs/ssr/pages/api/hello.ts @@ -0,0 +1,12 @@ +import type { NextApiRequest, NextApiResponse } from 'next' + +type ResponseData = { + message: string +} + +export default function handler( + req: NextApiRequest, + res: NextApiResponse +) { + res.status(200).json({ message: 'Hello from Next.js!' }) +}