handler property
Handler
get
handler
Implementation
Handler get handler {
final router = Router();
router.get(
'/list',
(Request request) => Response.ok(
json.encode(multicastProbe.onvifDevices),
headers: {'Content-type': 'application/json'},
));
router.all(
'/refresh',
(Request request) => Response.ok(
{'success': 'true'},
headers: {'Content-type': 'application/json'},
));
return router.call;
}