move middlewares out of auth

This commit is contained in:
Milo Schwartz 2024-11-16 22:48:10 -05:00
parent 7e2a7434cf
commit b9ff0b5de6
15 changed files with 15 additions and 19 deletions

View file

@ -11,21 +11,18 @@ import {
rateLimitMiddleware,
verifySessionMiddleware,
verifySessionUserMiddleware,
} from "@server/middlewares";
import {
verifyOrgAccess,
getUserOrgs,
verifySiteAccess,
verifyResourceAccess,
verifyTargetAccess,
verifyRoleAccess,
verifySetResourceUsers,
verifyUserAccess,
verifyUserInRole,
verifySetResourceUsers
} from "./auth";
import { verifyUserHasAction } from "./auth/verifyUserHasAction";
getUserOrgs,
} from "@server/middlewares";
import { verifyUserHasAction } from "../middlewares/verifyUserHasAction";
import { ActionsEnum } from "@server/auth/actions";
import { verifyUserIsOrgOwner } from "./auth/verifyUserIsOrgOwner";
import { verifyUserIsOrgOwner } from "../middlewares/verifyUserIsOrgOwner";
import { createNewt, getToken } from "./newt";
// Root routes