UNPKG

@deepkit/framework

Version:

28 lines 1.32 kB
"use strict"; /* * Deepkit Framework * Copyright (C) 2021 Deepkit UG, Marc J. Schmidt * * This program is free software: you can redistribute it and/or modify * it under the terms of the MIT License. * * You should have received a copy of the MIT License along with this program. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.registerDebugHttpController = registerDebugHttpController; const http_1 = require("@deepkit/http"); const app_1 = require("@deepkit/app"); const path_1 = require("path"); const core_1 = require("@deepkit/core"); function registerDebugHttpController(module, path) { const currentDir = (0, path_1.dirname)((0, core_1.getCurrentFileName)()); const localPath = (0, app_1.findParentPath)('node_modules/@deepkit/framework-debug-gui/dist/framework-debug-gui', currentDir); if (localPath) { (0, http_1.registerStaticHttpController)(module, { path, localPath, groups: ['app-static'], controllerName: 'FrameworkDebuggerController' }); } else { console.log('Warning: node_modules/@deepkit/framework-debug-gui no build found in ' + currentDir); } } registerDebugHttpController.__type = [() => app_1.AppModule, 'module', 'path', 'registerDebugHttpController', 'PP"7!2"&2#$/$']; //# sourceMappingURL=http-debug.controller.js.map