mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-27 09:40:45 +00:00
Add API Key auth mode support for v1/workspace
This commit is contained in:
@ -8,6 +8,7 @@ import {
|
||||
} from "../../middleware";
|
||||
import {
|
||||
ADMIN,
|
||||
AUTH_MODE_API_KEY,
|
||||
AUTH_MODE_JWT,
|
||||
MEMBER,
|
||||
} from "../../variables";
|
||||
@ -44,7 +45,7 @@ router.get(
|
||||
router.get(
|
||||
"/",
|
||||
requireAuth({
|
||||
acceptedAuthModes: [AUTH_MODE_JWT],
|
||||
acceptedAuthModes: [AUTH_MODE_JWT, AUTH_MODE_API_KEY],
|
||||
}),
|
||||
workspaceController.getWorkspaces
|
||||
);
|
||||
|
Reference in New Issue
Block a user