Page Contents

Home > @loopback/rest > RestRouter > add

RestRouter.add() method

Add a route to the router

Signature:

add(route: RouteEntry): void;

Parameters

Parameter Type Description
route RouteEntry A route entry

Returns:

void