]> BookStack Code Mirror - bookstack/blobdiff - app/App/MetaController.php
respective book and chapter structure added.
[bookstack] / app / App / MetaController.php
index 3d3a8d2c841c8d9c3a684fdaf22cfe97d3682154..a94334c585184a45baed6ad24a56cf70b845aca7 100644 (file)
@@ -56,7 +56,7 @@ class MetaController extends Controller
      */
     public function licenses()
     {
-        $this->setPageTitle('Licenses');
+        $this->setPageTitle(trans('settings.licenses'));
 
         return view('help.licenses', [
             'license' => file_get_contents(base_path('LICENSE')),
@@ -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');
+    }
 }