add new components
This commit is contained in:
@@ -4,6 +4,6 @@ import { authMiddleware } from "@/middleware/auth";
|
||||
|
||||
export const getUser = createServerFn({ method: "GET" })
|
||||
.middleware([authMiddleware])
|
||||
.handler(async ({ context }) => {
|
||||
.handler(({ context }) => {
|
||||
return context.session;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user