X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a2fd80954bfd0b2a98d54b9ad2c68628cd1e2b1c..refs/pull/5721/head:/app/App/MetaController.php diff --git a/app/App/MetaController.php b/app/App/MetaController.php index 1515b4f7e..a94334c58 100644 --- a/app/App/MetaController.php +++ b/app/App/MetaController.php @@ -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'); + } }