UNPKG

@mdf.js/service-registry

Version:

MMS - API - Service Registry

34 lines 1.16 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 { Aggregator } from '../Aggregator'; /** Router class */ export declare class Router { private readonly aggregator; private readonly path; 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 aggregator - Aggregator used by this component * @param path - prefix path for all the routes */ constructor(aggregator: Aggregator, 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=registry.router.d.ts.map