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