updated read me for newly supported plugins
Signed-off-by: zcason <a-zcason@expediagroup.com>
This commit is contained in:
@@ -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();
|
||||
```
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user