Skip to main content

default

talawa-apiDocs


talawa-api / app / default

Function: default()

default(req, res)

> default(req, res): any

Express instance itself is a request handler, which could be invoked without third argument.

Parameters

req: IncomingMessage | Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

res: ServerResponse<IncomingMessage> | Response<any, Record<string, any>, number>

Returns

any

Defined in

src/app.ts:19

default(req, res, next)

> default(req, res, next): void

Parameters

req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

res: Response<any, Record<string, any>, number>

next: NextFunction

Returns

void

Defined in

src/app.ts:19