From 9b6eae88f66fcd0640884796719ba59c1d7d4398 Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Thu, 27 Jun 2024 12:30:21 +0300 Subject: [PATCH] fix(nuxt): api template typo --- .../application/files/src/server/api/greet.ts__tmpl__ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/generators/application/files/src/server/api/greet.ts__tmpl__ b/packages/nuxt/src/generators/application/files/src/server/api/greet.ts__tmpl__ index da8c6a451a6d2..9109551275b04 100644 --- a/packages/nuxt/src/generators/application/files/src/server/api/greet.ts__tmpl__ +++ b/packages/nuxt/src/generators/application/files/src/server/api/greet.ts__tmpl__ @@ -2,7 +2,7 @@ import { defineEventHandler, getQuery } from 'h3'; export default defineEventHandler((event) => { const q = getQuery(event); - const name = q.name || 'World'; + const projectName = q.name || 'World'; return { message: `Hello ${projectName}`,