mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 06:59:33 +02:00
move middlewares out of auth
This commit is contained in:
parent
7e2a7434cf
commit
b9ff0b5de6
15 changed files with 15 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue