Class: Rotations

@aofl/rotations~ Rotations

Produces an updated route config based on a rotation config

new Rotations(cacheNamespace, routesConfig, rotationConfig, rotationConditions, publicPath)

Parameters:
Name Type Default Description
cacheNamespace String
routesConfig Object
rotationConfig Object
rotationConditions Object
publicPath Object /
Source:

Methods


<async> getRoutes(mainRoutes)

Parameters:
Name Type Default Description
mainRoutes String routes
Source:
Returns:
resolves to a route configuration Array of route objects
Type
Promise