about summary refs log tree commit diff stats
path: root/classes/CsrfMiddleware.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-24 21:23:59 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-24 21:23:59 +0300
commit4af3c3398db3c214d2216d56a1154a00ba079923 (patch)
treea20f4b71605d8e3667b51c4b7e43f1afe3dbc521 /classes/CsrfMiddleware.php
parentce40334f1a4708958b38c8565635019e4fbeefb9 (diff)
downloadthe-epube-4af3c3398db3c214d2216d56a1154a00ba079923.tar.gz
the-epube-4af3c3398db3c214d2216d56a1154a00ba079923.tar.xz
add a listhandler to show return a list of books as JSON for index
Diffstat (limited to 'classes/CsrfMiddleware.php')
-rw-r--r--classes/CsrfMiddleware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/CsrfMiddleware.php b/classes/CsrfMiddleware.php
index 2361957..9693f99 100644
--- a/classes/CsrfMiddleware.php
+++ b/classes/CsrfMiddleware.php
@@ -4,7 +4,7 @@ class CsrfMiddleware implements MiddlewareInterface
 {
     /** @var array<string> */
     private array $csrfIgnore = [
-        "cover", "download", "getpagination", "getlastread", "getinfo"
+        "cover", "download", "getpagination", "getlastread", "getinfo", "list"
     ];
 
     public function process(Request $request, callable $next): Response