fix(backend-defaults): fixes actions registry http middleware conflicts
Signed-off-by: Adam Letizia <LetiziaAdam@JohnDeere.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/backend-defaults': patch
|
||||
---
|
||||
|
||||
DefaultActionsRegistryService: add json middleware to /.backstage/actions/ routes only
|
||||
+1
-1
@@ -90,7 +90,7 @@ export class DefaultActionsRegistryService implements ActionsRegistryService {
|
||||
|
||||
createRouter(): Router {
|
||||
const router = PromiseRouter();
|
||||
router.use(json());
|
||||
router.use('/.backstage/actions/', json());
|
||||
|
||||
router.get('/.backstage/actions/v1/actions', async (req, res) => {
|
||||
const credentials = await this.httpAuth.credentials(req);
|
||||
|
||||
Reference in New Issue
Block a user