Merge pull request #12128 from awanlin/topic/improve-ados-backend-example

Improve Azure DevOps Backend Example
This commit is contained in:
Johan Haals
2022-06-20 11:23:03 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-azure-devops-backend': patch
---
Added comments to example to help avoid confusion as to where lines need to be added
+3
View File
@@ -60,7 +60,10 @@ Here's how to get the backend up and running:
// ...
async function main() {
// ...
// Add this line under the other lines that follow the useHotMemoize pattern
const azureDevOpsEnv = useHotMemoize(module, () => createEnv('azure-devops'));
// ...
// Insert this line under the other lines that add their routers to apiRouter in the same way
apiRouter.use('/azure-devops', await azureDevOps(azureDevOpsEnv));
```