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