You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
386 B
15 lines
386 B
import express from 'express';
|
|
import { Controller } from 'controllers/Controller';
|
|
import Server from 'Server';
|
|
|
|
export class TracersController extends Controller {
|
|
constructor(server: Server) {
|
|
super(server);
|
|
this.server.tracers.forEach(tracer => tracer.route(this.router));
|
|
}
|
|
|
|
route = (router: express.Router): void => {
|
|
router.use('/tracers', this.router);
|
|
};
|
|
}
|