UNPKG

webssh2-server

Version:

A Websocket to SSH2 gateway using xterm.js, socket.io, ssh2

18 lines (17 loc) 828 B
import type { Application, RequestHandler } from 'express'; import type { Config } from '../types/config.js'; export { createAuthMiddleware } from './auth.middleware.js'; export { createSessionMiddleware } from './session.middleware.js'; export { createBodyParserMiddleware } from './body-parser.middleware.js'; export { createCookieMiddleware } from './cookie.middleware.js'; export { createSSOAuthMiddleware } from './sso.middleware.js'; export { createCSRFMiddleware } from './csrf.middleware.js'; /** * Apply all middleware to the Express application * @param app - Express application instance * @param config - Application configuration * @returns Object containing references to key middleware */ export declare function applyMiddleware(app: Application, config: Config): { sessionMiddleware: RequestHandler; };