Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* tslint:disable */
import { Controller, ValidationService, FieldErrors, ValidateError, TsoaRoute } from 'tsoa';
import { WidgetsController } from './controllers/widgets-controller';
import * as express from 'express';
const models: TsoaRoute.Models = {
"IWidget": {
"properties": {
"id": { "dataType": "double", "required": true },
"label": { "dataType": "string", "required": true },
"color": { "dataType": "string", "required": true },
},
},
};
const validationService = new ValidationService(models);
export function RegisterRoutes(app: express.Express) {
app.get('/api/widgets',
function(request: any, response: any, next: any) {
const args = {
};
let validatedArgs: any[] = [];
try {
validatedArgs = getValidatedArgs(args, request);
} catch (err) {
return next(err);
}
const controller = new WidgetsController();