Skip to content

Commit

Permalink
add new api
Browse files Browse the repository at this point in the history
  • Loading branch information
ocitocit committed Oct 14, 2023
1 parent e3b7291 commit afe9d27
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/api/reservations/[reservationId]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { NextResponse } from 'next/server';
import getCurrentUser from '@/actions/getCurrentUser';
import prisma from '@/libs/prismadb';

interface IParams {
reservationId?: string;
}

export async function DELETE(request: Request, { params }: { params: IParams }) {
const currentUser = await getCurrentUser();

if (!currentUser) {
return NextResponse.error();
}
}

0 comments on commit afe9d27

Please sign in to comment.