feat(api-docs): create new plugin

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-02-05 16:28:59 +01:00
parent 9e8046f2bc
commit ae8716c94c
3 changed files with 19 additions and 0 deletions
+15
View File
@@ -13,3 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createPlugin } from '@backstage/frontend-plugin-api';
import { convertLegacyRouteRef } from '@backstage/core-compat-api';
import { rootRoute, registerComponentRouteRef } from './routes';
export default createPlugin({
id: 'api-docs',
routes: {
root: convertLegacyRouteRef(rootRoute),
},
externalRoutes: {
registerApi: convertLegacyRouteRef(registerComponentRouteRef),
},
extensions: [],
});