portfolio/app/api/articles/route.ts
Ryan Freeman 5e8da79a82
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m45s
Added Article navigation
2024-10-02 15:38:13 +01:00

8 lines
216 B
TypeScript

import {getAllArticles} from '@/lib/getAllArticles'
export async function GET(request: Request) {
const articles = await getAllArticles(false)
return new Response(JSON.stringify(articles), {status: 200})
}