Update eslint config, brewery post controllers

This commit is contained in:
Aaron William Po
2023-12-10 12:47:09 -05:00
parent 38ecd3a5fb
commit 830e9dc845
21 changed files with 372 additions and 255 deletions

View File

@@ -12,7 +12,7 @@ interface GetBreweryPostsRequest extends NextApiRequest {
query: z.infer<typeof PaginatedQueryResponseSchema>;
}
const getBreweryPosts = async (
const getMapBreweryPosts = async (
req: GetBreweryPostsRequest,
res: NextApiResponse<z.infer<typeof APIResponseValidationSchema>>,
) => {
@@ -53,7 +53,7 @@ const router = createRouter<
router.get(
validateRequest({ querySchema: PaginatedQueryResponseSchema }),
getBreweryPosts,
getMapBreweryPosts,
);
const handler = router.handler();