Skip to content

Instantly share code, notes, and snippets.

@CodeNinja47
Created April 5, 2023 07:00
Show Gist options
  • Save CodeNinja47/c6696a5e3e50ebf166ba49e2c9cf49d2 to your computer and use it in GitHub Desktop.
Save CodeNinja47/c6696a5e3e50ebf166ba49e2c9cf49d2 to your computer and use it in GitHub Desktop.
export async function GET(request: Request) {
return new Response(JSON.stringify([
{
id: 1,
title: 'Todo1',
description: 'Todo 1 description'
},
{
id: 2,
title: 'Todo2',
description: 'Todo 2 description'
},
]))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment