Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return {
code: {
status: new Int64(0),
},
value: 'test',
}
},
fetchUnion(): ICommonUnion {
return { option1: 'test' }
},
broken(): void {
throw new Error(`Yeah, this didn't work`)
},
}
const app: express.Application = createThriftServer({
path: EXPRESS_CALC_SERVER_CONFIG.path,
thriftOptions: {
serviceName: 'calculator-service',
handler: new Calculator.Processor(serviceHandlers),
},
})
app.get('/control', (req: express.Request, res: express.Response) => {
res.send('PASS')
})
return app
}