updated read me for newly supported plugins

Signed-off-by: zcason <a-zcason@expediagroup.com>
This commit is contained in:
zcason
2023-09-18 15:53:56 -05:00
parent d4c960a442
commit 0b5845f6c1
2 changed files with 33 additions and 0 deletions
+15
View File
@@ -26,3 +26,18 @@ yarn workspace example-backend start
```
This will launch the full example backend.
### New Backend System
The Grahpql backend plugin has support for the [new backend system](https://backstage.io/docs/backend-system/), here's how you can set that up:
In your `packages/backend/src/index.ts` make the following changes:
```diff
+ import { graphqlPlugin } from '@backstage/plugin-graphql-backend';
const backend = createBackend();
+ backend.add(graphqlPlugin());
// ... other feature additions
backend.start();
```
+18
View File
@@ -85,3 +85,21 @@ export default async function createPlugin(env: PluginEnvironment): Promise<Rout
policy: new BackstagePermissionPolicy(),
...
```
### New Backend System
The Playlist backend plugin has support for the [new backend system](https://backstage.io/docs/backend-system/), here's how you can set that up:
In your `packages/backend/src/index.ts` make the following changes:
```diff
import { createBackend } from '@backstage/backend-defaults';
+ import { playlistPlugin } from '@backstage/plugin-playlist-backend';
const backend = createBackend();
// ... other feature additions
+ backend.add(playlistPlugin());
backend.start();
```