]> BookStack Code Mirror - bookstack/blobdiff - app/Api/ApiDocsController.php
Update UserPreferencesTest.php
[bookstack] / app / Api / ApiDocsController.php
index 020c8902f32a19a7d0ef5a896c78874ca10c5eb1..382ec15ebf4f5cfc55be8797f2ce3a8d16646fc0 100644 (file)
@@ -28,4 +28,12 @@ class ApiDocsController extends ApiController
 
         return response()->json($docs);
     }
+
+    /**
+     * Redirect to the API docs page.
+     */
+    public function redirect()
+    {
+        return redirect('/api/docs');
+    }
 }