Update api routes to use authenticated user

This commit is contained in:
Aaron William Po
2023-02-06 19:01:01 -05:00
parent 9a9d8bcb94
commit 3626e3de44
12 changed files with 190 additions and 143 deletions

View File

@@ -15,7 +15,7 @@ export const UserSessionSchema = BasicUserInfoSchema.merge(
}),
);
export interface ExtendedNextApiRequest extends NextApiRequest {
export interface UserExtendedNextApiRequest extends NextApiRequest {
user?: z.infer<typeof GetUserSchema>;
}