Merge pull request #12128 from awanlin/topic/improve-ados-backend-example
Improve Azure DevOps Backend Example
This commit is contained in:
@@ -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
|
||||
@@ -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));
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user