UNPKG

summer-glove

Version:

[![npm version](https://img.shields.io/npm/v/npm-package.svg?style=flat)](https://www.npmjs.com/package/summer-glove) ## Fit like a glove 🧤 Summer-glove is a route manager, providing a quick and easy way to configure an express application. Summer-glo

29 lines (28 loc) • 792 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ExpressInformationCore { constructor() { this.mappedApi = {}; this.controllers = {}; this.appUse = {}; } static getInstance() { if (!ExpressInformationCore.instance) { ExpressInformationCore.instance = new ExpressInformationCore(); } return ExpressInformationCore.instance; } getObjectConfig() { return { mappedApi: this.mappedApi, controllers: this.controllers, appUse: this.appUse }; } cleanObjects() { this.mappedApi = {}; this.appUse = {}; this.controllers = {}; } } exports.default = ExpressInformationCore;