Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@injectable()
export class VersionController implements interfaces.Controller {
public static TARGET_NAME: string = 'VersionController';
constructor(
@inject(VersionsService.TARGET_NAME)
private versionsService: VersionsService
) {}
@ApiOperationGet({
description: 'Get version object',
parameters: {
path: {
id: {
required: true,
type: SwaggerDefinitionConstant.Parameter.Type.STRING,
},
},
},
responses: {
200: {
model: 'Version',
},
400: {},
},
})
@httpGet('/')
public getVersion(
@requestParam('id') id: string,
request: express.Request,
response: express.Response,
next: express.NextFunction