UNPKG

naily

Version:

写了一个没有模块系统的 Minimal Nest.js 写着玩的~

18 lines 840 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initAll = void 0; const http_decorator_1 = require("../decorator/http.decorator"); const path_1 = require("path"); const parameter_1 = require("../common/parameter"); const init_1 = require("./init"); function initAll(prototype, element, controllerMetadata, app) { const methodGETData = Reflect.getMetadata(http_decorator_1.HTTP_KEY.All, prototype[element]); if (!methodGETData) return; const { info } = methodGETData; const urlPath = (0, path_1.join)("/" + controllerMetadata.path, info).replace(/\\/g, "/"); const metadata = (0, parameter_1.initParameter)(controllerMetadata); (0, init_1.initMethod)("all", urlPath, app, metadata, controllerMetadata, element); } exports.initAll = initAll; //# sourceMappingURL=all.js.map