readme update

Signed-off-by: zcason <a-zcason@expediagroup.com>
This commit is contained in:
zcason
2023-09-20 15:17:32 -05:00
parent 9e46f5ff49
commit 38fddab7d5
2 changed files with 9 additions and 9 deletions
+4 -3
View File
@@ -29,14 +29,15 @@ 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:
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';
import { createBackend } from '@backstage/backend-defaults';
const backend = createBackend();
+ backend.add(graphqlPlugin());
backend.add(import('@backstage/plugin-graphql-backend'));
// ... other feature additions
backend.start();
+5 -6
View File
@@ -93,13 +93,12 @@ The Playlist backend plugin has support for the [new backend system](https://bac
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();
import { createBackend } from '@backstage/backend-defaults';
// ... other feature additions
const backend = createBackend();
+ backend.add(playlistPlugin());
backend.add(import('@backstage/plugin-playlist-backend'));
// ... other feature additions
backend.start();
backend.start();
```