Added support for the new backend system for the entity feedback plugin

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
This commit is contained in:
Niklas Aronsson
2023-06-20 21:40:56 +02:00
parent 07e8526b30
commit 5c1c10adac
9 changed files with 85 additions and 0 deletions
+15
View File
@@ -48,3 +48,18 @@ async function main() {
apiRouter.use(notFoundHandler());
```
### New Backend System
The Entity Feedback 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 { entityFeedbackPlugin } from '@backstage/plugin-entity-feedback-backend';
const backend = createBackend();
+ backend.add(entityFeedbackPlugin());
// ... other feature additions
backend.start();
```