mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-22 12:56:37 +00:00
add createNewt action and remove max orgs restriction
This commit is contained in:
@@ -383,7 +383,10 @@ authenticated.get(
|
||||
|
||||
authenticated.get(`/org/:orgId/overview`, verifyOrgAccess, org.getOrgOverview);
|
||||
|
||||
authenticated.post(`/supporter-key/validate`, supporterKey.validateSupporterKey);
|
||||
authenticated.post(
|
||||
`/supporter-key/validate`,
|
||||
supporterKey.validateSupporterKey
|
||||
);
|
||||
authenticated.post(`/supporter-key/hide`, supporterKey.hideSupporterKey);
|
||||
|
||||
unauthenticated.get("/resource/:resourceId/auth", resource.getResourceAuthInfo);
|
||||
@@ -470,7 +473,11 @@ authenticated.delete(
|
||||
// role.removeRoleAction
|
||||
// );
|
||||
|
||||
authenticated.put("/newt", createNewt);
|
||||
authenticated.put(
|
||||
"/newt",
|
||||
verifyUserHasAction(ActionsEnum.createNewt),
|
||||
createNewt
|
||||
);
|
||||
|
||||
// Auth routes
|
||||
export const authRouter = Router();
|
||||
|
||||
@@ -27,7 +27,7 @@ const createOrgSchema = z
|
||||
})
|
||||
.strict();
|
||||
|
||||
const MAX_ORGS = 5;
|
||||
// const MAX_ORGS = 5;
|
||||
|
||||
export async function createOrg(
|
||||
req: Request,
|
||||
|
||||
Reference in New Issue
Block a user