All checks were successful
Jenkins Production Deployment
Co-authored-by: Patrick Müller <patrick@mueller-patrick.tech> Reviewed-on: #5 Co-authored-by: Patrick Müller <patrick@plutodev.de> Co-committed-by: Patrick Müller <patrick@plutodev.de>
19 lines
375 B
TypeScript
19 lines
375 B
TypeScript
import express from 'express';
|
|
|
|
export abstract class CommonRoutesConfig {
|
|
app: express.Application;
|
|
name: string;
|
|
|
|
constructor(app: express.Application, name: string) {
|
|
this.app = app;
|
|
this.name = name;
|
|
this.configureRoutes();
|
|
}
|
|
|
|
getName() {
|
|
return this.name;
|
|
}
|
|
|
|
abstract configureRoutes(): express.Application;
|
|
}
|