mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 01:05:40 +00:00
Modify service token format
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import express, { Request, Response } from 'express';
|
||||
import express from 'express';
|
||||
const router = express.Router();
|
||||
import {
|
||||
requireAuth,
|
||||
@@ -20,8 +20,6 @@ router.get(
|
||||
requireAuth({
|
||||
acceptedAuthModes: ['serviceToken']
|
||||
}),
|
||||
param('serviceTokenDataId').exists().trim(),
|
||||
validateRequest,
|
||||
serviceTokenDataController.getServiceTokenData
|
||||
);
|
||||
|
||||
|
||||
@@ -4,11 +4,9 @@ import { body, param, query } from 'express-validator';
|
||||
import {
|
||||
requireAuth,
|
||||
requireWorkspaceAuth,
|
||||
requireServiceTokenAuth,
|
||||
validateRequest
|
||||
} from '../../middleware';
|
||||
import { ADMIN, MEMBER, COMPLETED, GRANTED } from '../../variables';
|
||||
import { membershipController } from '../../controllers/v1';
|
||||
import { workspaceController } from '../../controllers/v2';
|
||||
|
||||
router.post(
|
||||
|
||||
Reference in New Issue
Block a user