Skip to content

Commit

Permalink
Removed static generation of API parameters for React Admin
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Dec 23, 2023
1 parent 37dbed3 commit 6acfe27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/admin/[...resource]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
//
import prisma from "@/utilities/prisma";
import { auth } from "@/utilities/next-auth";
import { NextResponse } from "next/server";
import { NextRequest, NextResponse } from "next/server";
import { type RaPayload, defaultHandler } from "ra-data-simple-prisma";

const handler = async ( request: Request ) =>
const handler = async ( request: NextRequest ) =>
{
// On vérifie d'abord la session de l'utilisateur.
const session = await auth();
Expand Down

0 comments on commit 6acfe27

Please sign in to comment.