2023-11-08 05:35:48 +01:00
|
|
|
import { defineEventHandler } from "h3";
|
2023-05-11 06:03:22 +02:00
|
|
|
|
2023-11-08 05:35:48 +01:00
|
|
|
import getRequestingUser from "~/server/utils/getRequestingUser";
|
|
|
|
import { prismaToWeb } from "~/server/utils/prismaToWeb";
|
2023-05-11 06:03:22 +02:00
|
|
|
|
2023-11-08 05:35:48 +01:00
|
|
|
export default defineEventHandler((e) => {
|
|
|
|
return getRequestingUser(e).then(prismaToWeb);
|
2023-05-11 06:03:22 +02:00
|
|
|
});
|