UNPKG

@mdf.js/service-registry

Version:

MMS - API - Service Registry

33 lines 1.12 kB
/** * Copyright 2024 Mytra Control S.L. All rights reserved. * * Use of this source code is governed by an MIT-style license that can be found in the LICENSE file * or at https://opensource.org/licenses/MIT. */ import express from 'express'; import { SettingsManager } from '..'; /** Router class */ export declare class Router { private readonly manager; private readonly _router; /** Model class instance */ private readonly model; /** Service class instance */ private readonly service; /** Controller class instance */ private readonly controller; /** * Create a new instance of the Router class * @param manager - Registry used by this component * @param path - prefix path for all the routes */ constructor(manager: SettingsManager, path?: string); /** * Perform the instantiation of the routes in an express router * @param path - prefix path for all the routers */ private buildRoutes; /** Express router for health REST API component*/ get router(): express.Router; } //# sourceMappingURL=config.router.d.ts.map