fix(nuxt): api template typo (#26719)

Typo in the `nuxt` server api template.
This commit is contained in:
Katerina Skroumpelou 2024-06-27 12:43:34 +03:00 committed by GitHub
parent c2c6a13514
commit 9aca5f30f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}`,