11 lines
442 B
TypeScript
11 lines
442 B
TypeScript
|
import ApplicationComponent from "../ApplicationComponent";
|
||
|
import { Express, Router } from "express";
|
||
|
import { PathParams } from "express-serve-static-core";
|
||
|
export default class ServeStaticDirectoryComponent extends ApplicationComponent<void> {
|
||
|
private readonly root;
|
||
|
private readonly path?;
|
||
|
constructor(root: string, routePath?: PathParams);
|
||
|
start(app: Express, router: Router): Promise<void>;
|
||
|
stop(): Promise<void>;
|
||
|
}
|