Nuxt/test/fixtures/runtime-compiler/server/api/template.get.ts

8 lines
237 B
TypeScript
Raw Normal View History

/**
* mock the behavior of nuxt retrieving data from an api
*/
export default defineEventHandler(() => {
return '<div>Hello my name is : {{name}}, i am defined by ShowTemplate.vue and my template is retrieved from the API</div>'
})