maj url photo + page 404 + gestion programmation d'article
This commit is contained in:
@@ -5,6 +5,12 @@ import prisma from '@/lib/prisma'
|
||||
export async function GET() {
|
||||
try {
|
||||
const interviews = await prisma.interview.findMany({
|
||||
where: {
|
||||
status: 'PUBLISHED',
|
||||
publishedAt: {
|
||||
lte: new Date()
|
||||
}
|
||||
},
|
||||
orderBy: { date: 'desc' },
|
||||
})
|
||||
return NextResponse.json(interviews)
|
||||
|
||||
Reference in New Issue
Block a user