Merge pull request #8659 from backstage/timbonicus/backend-note

Add warning to default backend
This commit is contained in:
Tim Hansen
2021-12-28 10:15:16 -07:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/create-app': patch
---
Add a comment to the default backend about the fallback 404 handler.
@@ -81,6 +81,8 @@ async function main() {
apiRouter.use('/techdocs', await techdocs(techdocsEnv));
apiRouter.use('/proxy', await proxy(proxyEnv));
apiRouter.use('/search', await search(searchEnv));
// Add backends ABOVE this line; this 404 handler is the catch-all fallback
apiRouter.use(notFoundHandler());
const service = createServiceBuilder(module)