updated endpoint options

This commit is contained in:
Erik 2023-05-01 23:41:54 +03:00
parent 88db424a1f
commit 62e77bc429
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68

View File

@ -22,12 +22,6 @@ export type RegistryOptions = {
path: string path: string
} }
export type EndpointOptions = {
path: string,
name: string,
loadOrder?: number
}
type HttpOptions = { type HttpOptions = {
port: number port: number
} & http.ServerOptions } & http.ServerOptions
@ -167,4 +161,9 @@ export type SessionLimit = {
reset: number reset: number
} }
export type AuthFunction = (req: Request, res: Response, next: NextFunction) => void export type EndpointOptions = {
path: string,
name: string,
auth?: MiddlewareFunction | true | null,
loadOrder?: number
}