Skip to main content

EcoFlowJS Router Methods

The EcoFlowJS Router can accessed by global ecoflow instance of the application

const { router } = ecoflow;
const ecoflowRouter = router.systemRouter;

Alternative method

const ecoflowRouter = ecoflow.router.systemRouter;

Available Methods

tip

The Router is an inherited instance of koa-router and a more appropriate can be found here