docs: highlight convertLegacyRouteRefs

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2024-01-23 09:43:05 +01:00
parent a7ecd1aa7b
commit 969515dbab
@@ -174,12 +174,15 @@ The new `createPlugin` function doesn't accept apis anymore as apis are now exte
// bind all the extensions to the plugin
/* highlight-next-line */
extensions: [homePage, exampleWorkApi],
routes: {
// convert old route refs to the new system
/* highlight-next-line */
routes: convertLegacyRouteRefs({
...
},
externalRoutes: {
}),
/* highlight-next-line */
externalRoutes: convertLegacyRouteRefs({
...
},
}),
});
```