From 62e77bc429a7302dc24ac582fa502a128e2a140e Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 1 May 2023 23:41:54 +0300 Subject: [PATCH] updated endpoint options --- @types/Server.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/@types/Server.ts b/@types/Server.ts index 23a0377..3ad39c5 100644 --- a/@types/Server.ts +++ b/@types/Server.ts @@ -22,12 +22,6 @@ export type RegistryOptions = { path: string } -export type EndpointOptions = { - path: string, - name: string, - loadOrder?: number -} - type HttpOptions = { port: number } & http.ServerOptions @@ -167,4 +161,9 @@ export type SessionLimit = { reset: number } -export type AuthFunction = (req: Request, res: Response, next: NextFunction) => void \ No newline at end of file +export type EndpointOptions = { + path: string, + name: string, + auth?: MiddlewareFunction | true | null, + loadOrder?: number +} \ No newline at end of file