convert webpack to typescript
This allows us to add a mock library for simulating the real device. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
10
mock/webpack.farpatch.ts
Normal file
10
mock/webpack.farpatch.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { Request, Application, Response } from 'express';
|
||||
|
||||
export function getVoltages(request: Request, response: Response) {
|
||||
// ...
|
||||
response.send('these are some voltages');
|
||||
}
|
||||
|
||||
export function installMiddlewares(app: Application) {
|
||||
app.get('/voltages', getVoltages);
|
||||
}
|
Reference in New Issue
Block a user