diff --git a/server/routes.js b/server/routes.js index be977bf2..7dbb1a69 100644 --- a/server/routes.js +++ b/server/routes.js @@ -11,6 +11,7 @@ import apexRedirect from './middlewares/apexRedirect'; import renderpage from './utils/renderpage'; import { isCustomSubdomain, parseDomain } from '../shared/utils/domains'; import { robotsResponse } from './utils/robots'; +import { opensearchResponse } from './utils/opensearch'; import { NotFoundError } from './errors'; import { Team } from './models'; @@ -146,7 +147,14 @@ router.get('/', async ctx => { ); }); -router.get('/robots.txt', ctx => (ctx.body = robotsResponse(ctx))); +router.get('/robots.txt', ctx => { + ctx.body = robotsResponse(ctx); +}); + +router.get('/opensearch.xml', ctx => { + ctx.type = 'text/xml'; + ctx.body = opensearchResponse(); +}); // catch all for react app router.get('*', async (ctx, next) => { diff --git a/server/static/dev.html b/server/static/dev.html index c403c9d9..0c14b993 100644 --- a/server/static/dev.html +++ b/server/static/dev.html @@ -2,6 +2,15 @@ Outline + + + +