1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-06 12:02:45 +03:00

Add XML for OpenSearch

This commit is contained in:
Maximilian Walter
2024-09-09 22:54:33 +02:00
parent 3a058a6e34
commit 476c2be5a6
4 changed files with 25 additions and 0 deletions

View 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');
}
}