fix(auth): fixed the getaccess to be getuseraccess as it was orignally

This commit is contained in:
2025-03-23 10:59:48 -05:00
parent f940bcdc9d
commit b9dd6e3ae2

View File

@@ -1,10 +1,7 @@
import { z, createRoute, OpenAPIHono } from "@hono/zod-openapi";
import { apiHit } from "../../../../globalUtils/apiHits.js";
import jwt from "jsonwebtoken";
import type { CustomJwtPayload } from "../../../../types/jwtToken.js";
import { authMiddleware } from "../../middleware/authMiddleware.js";
import hasCorrectRole from "../../middleware/roleCheck.js";
import { roleCheck } from "../../controllers/userRoles/getUserAccess.js";
const { verify } = jwt;
@@ -16,10 +13,10 @@ const responseSchema = z.object({
app.openapi(
createRoute({
tags: ["Auth:user"],
tags: ["auth:user"],
summary: "returns the users access",
method: "get",
path: "/getAccess",
path: "/getuseraccess",
middleware: [authMiddleware],
responses: {
200: {