add createNewt action and remove max orgs restriction

This commit is contained in:
miloschwartz
2025-03-26 22:20:22 -04:00
parent fefb07e14c
commit 5e2f9e1eeb
4 changed files with 24 additions and 4 deletions

View File

@@ -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();

View File

@@ -27,7 +27,7 @@ const createOrgSchema = z
})
.strict();
const MAX_ORGS = 5;
// const MAX_ORGS = 5;
export async function createOrg(
req: Request,