diff --git a/src/runtime/server/middleware/tokenAuth.ts b/src/runtime/server/middleware/tokenAuth.ts index 68e448a..9bb6e07 100644 --- a/src/runtime/server/middleware/tokenAuth.ts +++ b/src/runtime/server/middleware/tokenAuth.ts @@ -1,6 +1,7 @@ //import { usePrismaClient } from "../../composables/usePrismaClient.server"; import { PrismaClient } from "@prisma/client"; import { defineEventHandler } from "h3"; +import { useRuntimeConfig } from "#imports"; export default defineEventHandler(async (event) => { // check if the requested route starts with api