Sean Cross
0a3b6fe96e
This allows us to add a mock library for simulating the real device. Signed-off-by: Sean Cross <sean@xobs.io>
11 lines
277 B
TypeScript
11 lines
277 B
TypeScript
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);
|
|
}
|