]> BookStack Code Mirror - bookstack/blobdiff - app/App/MetaController.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / app / App / MetaController.php
index 1515b4f7eda6ed550bca45bfd5c0ad47f1a801ef..a94334c585184a45baed6ad24a56cf70b845aca7 100644 (file)
@@ -64,4 +64,14 @@ class MetaController extends Controller
             'jsLibData' => file_get_contents(base_path('dev/licensing/js-library-licenses.txt')),
         ]);
     }
+
+    /**
+     * Show the view for /opensearch.xml.
+     */
+    public function opensearch()
+    {
+        return response()
+            ->view('misc.opensearch')
+            ->header('Content-Type', 'application/opensearchdescription+xml');
+    }
 }