Return cache headers on opensearch.xml response

This commit is contained in:
Tom Moor
2024-02-21 07:35:38 -05:00
parent cf1b84524d
commit 219d9b5724
2 changed files with 9 additions and 6 deletions

View File

@@ -1,7 +1,9 @@
import env from "@server/env";
export const opensearchResponse = (baseUrl: string): string => `
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Outline</ShortName>
<Description>Search Outline</Description>
<ShortName>${env.APP_NAME}</ShortName>
<Description>Search ${env.APP_NAME}</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">${baseUrl}/images/favicon-16.png</Image>
<Url type="text/html" method="get" template="${baseUrl}/search/{searchTerms}?ref=opensearch"/>