refactor(core): Enforce authorization by default on all routes (no-changelog) (#8762)
This commit is contained in:
committed by
GitHub
parent
2811f77798
commit
db4a419c8d
@@ -1,4 +1,3 @@
|
||||
import type { ParsedQs } from 'qs';
|
||||
import type express from 'express';
|
||||
import type {
|
||||
BannerName,
|
||||
@@ -21,17 +20,6 @@ import type { WorkflowEntity } from '@db/entities/WorkflowEntity';
|
||||
import type { CredentialsEntity } from '@db/entities/CredentialsEntity';
|
||||
import type { WorkflowHistory } from '@db/entities/WorkflowHistory';
|
||||
|
||||
export type AsyncRequestHandler<
|
||||
Params = Record<string, string>,
|
||||
ResBody = unknown,
|
||||
ReqBody = unknown,
|
||||
ReqQuery = ParsedQs,
|
||||
> = (
|
||||
req: express.Request<Params, ResBody, ReqBody, ReqQuery>,
|
||||
res: express.Response<ResBody>,
|
||||
next: () => void,
|
||||
) => Promise<void>;
|
||||
|
||||
export class UserUpdatePayload implements Pick<User, 'email' | 'firstName' | 'lastName'> {
|
||||
@IsEmail()
|
||||
email: string;
|
||||
|
||||
Reference in New Issue
Block a user