Skip to main content

API Router Methods

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

const { router } = ecoflow;
const apiRouter = router.apiRouter;

Alternative method

const apiRouter = ecoflow.router.apiRouter;

Available Methods

tip

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