
controllers, repositories, services and associated tests for: Deed types, Deed, Document types, Users and Customers --------- Co-authored-by: Vincent Alamelle <vincent.alamelle@smart-chain.fr> Co-authored-by: OxSaitama <arnaud.daubernatali@smart-chain.fr>
17 lines
435 B
TypeScript
17 lines
435 B
TypeScript
import { NextFunction, Request, Response, Router } from "express";
|
|
import { RequestHandlerParams } from "express-serve-static-core";
|
|
|
|
export interface IConfig {
|
|
label: string;
|
|
port: number;
|
|
rootUrl: string;
|
|
middlwares: RequestHandlerParams[];
|
|
errorHandler?: (error: any, req: Request, res: Response, next: NextFunction) => void;
|
|
}
|
|
|
|
export default interface ServerInterface {
|
|
getRouter(): Router;
|
|
|
|
init(config: IConfig): this;
|
|
}
|