UNPKG

719 BTypeScriptView Raw
1import { APIDto } from './api.dto';
2import { Request } from 'express';
3import { LXDHubAPISettings } from '.';
4export declare class AppController {
5 private Fs;
6 private Path;
7 private appSettings;
8 constructor(Fs: any, Path: any, appSettings: LXDHubAPISettings);
9 /**
10 * Reads the package.json file and returns the parsed object
11 */
12 private getPackageJson;
13 /**
14 * Generates the docurl using the express request object
15 * and the given relative doc url
16 * @param req The express request
17 */
18 private getDocsUrl;
19 /**
20 * Returns general informations about the API.
21 * @param req The express request object
22 */
23 apiInfo(req: Request): Promise<APIDto>;
24}