Express application instance for static file serving

Handles static file serving and SPA routing

All routes are public but limited to static files

  • 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: Response<any, Record<string, any>, number> | ServerResponse<IncomingMessage>

    Returns any

  • Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
    • res: Response<any, Record<string, any>>
    • next: NextFunction

    Returns void | Promise<void>