View | Details | Raw Unified | Return to bug 38290
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js (+2 lines)
Lines 7-12 import ItemAPIClient from "./item-api-client"; Link Here
7
import RecordSourcesAPIClient from "./record-sources-api-client";
7
import RecordSourcesAPIClient from "./record-sources-api-client";
8
import SysprefAPIClient from "./system-preferences-api-client";
8
import SysprefAPIClient from "./system-preferences-api-client";
9
import PreservationAPIClient from "./preservation-api-client";
9
import PreservationAPIClient from "./preservation-api-client";
10
import LibraryAPIClient from "./library-api-client";
10
11
11
export const APIClient = {
12
export const APIClient = {
12
    erm: new ERMAPIClient(),
13
    erm: new ERMAPIClient(),
Lines 18-21 export const APIClient = { Link Here
18
    sysprefs: new SysprefAPIClient(),
19
    sysprefs: new SysprefAPIClient(),
19
    preservation: new PreservationAPIClient(),
20
    preservation: new PreservationAPIClient(),
20
    record_sources: new RecordSourcesAPIClient(),
21
    record_sources: new RecordSourcesAPIClient(),
22
    libraries: new LibraryAPIClient(),
21
};
23
};
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/library-api-client.js (-1 / +22 lines)
Line 0 Link Here
0
- 
1
import HttpClient from "./http-client";
2
3
export class LibraryAPIClient extends HttpClient {
4
    constructor() {
5
        super({
6
            baseURL: "/api/v1/library_groups",
7
        });
8
    }
9
10
    get libraryGroups() {
11
        return {
12
            getAll: (query, params) =>
13
                this.getAll({
14
                    endpoint: "",
15
                    query,
16
                    params,
17
                }),
18
        };
19
    }
20
}
21
22
export default LibraryAPIClient;

Return to bug 38290