15 lines
674 B
TypeScript
15 lines
674 B
TypeScript
/// <reference types="node" />
|
|
import { IncomingMessage, ServerResponse } from "http";
|
|
import { ImageRouteService } from "../services/mod/image/ImageRouteService";
|
|
import { HttpFileUtil } from "../utils/HttpFileUtil";
|
|
import { VFS } from "../utils/VFS";
|
|
export declare class ImageRouter {
|
|
protected vfs: VFS;
|
|
protected imageRouteService: ImageRouteService;
|
|
protected httpFileUtil: HttpFileUtil;
|
|
constructor(vfs: VFS, imageRouteService: ImageRouteService, httpFileUtil: HttpFileUtil);
|
|
addRoute(key: string, valueToAdd: string): void;
|
|
sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any): void;
|
|
getImage(): string;
|
|
}
|