]> git.koha-community.org Git - koha.git/commit
Bug 36084: Bring fetch for everywhere
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 13 Feb 2024 14:08:25 +0000 (15:08 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Mar 2024 10:00:41 +0000 (11:00 +0100)
commita9851c0d8b75f3b8044d441d50211b1e2900701a
treebdb734b1f33bdc29f1c4bfe97d9cd7601769dc91
parentcb64ea0c5440f5a7cf7837caafd487f35884430d
Bug 36084: Bring fetch for everywhere

We are retrieving the awesome fetch modules from Vue, so that it can be
used in other areas. Here we will use it to inject the CSRF token to the
header of every POST request.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/js/fetch/article-request-api-client.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/js/fetch/http-client.js [new file with mode: 0644]