Browse Source

add non dynamic opensearch :(

pull/376/head
castdrian 2 years ago
parent
commit
915c69a434
  1. 3
      index.html
  2. 9
      public/opensearch.xml

3
index.html

@ -33,6 +33,9 @@
<meta name="referrer" content="no-referrer" /> <meta name="referrer" content="no-referrer" />
<title>movie-web</title> <title>movie-web</title>
<!-- OpenSearch -->
<link rel="search" type="application/opensearchdescription+xml" title="movie-web" href="/opensearch.xml">
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>

9
public/opensearch.xml

@ -0,0 +1,9 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>movie-web</ShortName>
<Description>The place for your favorite movies &amp; shows</Description>
<InputEncoding>UTF-8</InputEncoding>
<!-- <Url type="text/html" template="https://movie-web.app/browse/{searchTerms}" /> -->
<Url type="text/html" template="https://dev.movie-web.app/browse/{searchTerms}" />
<!-- <Url type="text/html" template="http://localhost:5173/#/browse/{searchTerms}" /> -->
<Url type="application/opensearchdescription+xml" rel="self" template="https://movie-web.app/opensearch.xml" />
</OpenSearchDescription>
Loading…
Cancel
Save