Wroclaw
eebf25198d
also I updated packages, and properly typed api input a lot of time was spent, I don't remeber what really I did x3 but everything was related to replacing mysql2 with prisma
8 lines
263 B
TypeScript
8 lines
263 B
TypeScript
import { defineEventHandler } from "h3";
|
|
|
|
import getRequestingUser from "~/server/utils/getRequestingUser";
|
|
import { prismaToWeb } from "~/server/utils/prismaToWeb";
|
|
|
|
export default defineEventHandler((e) => {
|
|
return getRequestingUser(e).then(prismaToWeb);
|
|
});
|