File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ // This file is part of React-Invenio-Forms
2
+ // Copyright (C) 2022 CERN.
3
+ //
4
+ // React-Invenio-Forms is free software; you can redistribute it and/or modify it
5
+ // under the terms of the MIT License; see LICENSE file for more details.
6
+
7
+ // This file is part of InvenioRDM
8
+ // Copyright (C) 2022 CERN.
9
+ //
10
+ // Invenio RDM is free software; you can redistribute it and/or modify it
11
+ // under the terms of the MIT License; see LICENSE file for more details.
12
+
13
+ import axios from "axios" ;
14
+
15
+ const baseAxiosConfiguration = {
16
+ withCredentials : true ,
17
+ xsrfCookieName : "csrftoken" ,
18
+ xsrfHeaderName : "X-CSRFToken" ,
19
+ headers : {
20
+ "Accept" : "application/json" ,
21
+ "Content-Type" : "application/json" ,
22
+ } ,
23
+ } ;
24
+
25
+ export const http = axios . create ( baseAxiosConfiguration ) ;
Original file line number Diff line number Diff line change
1
+ // This file is part of React-Invenio-Forms
2
+ // Copyright (C) 2022 CERN.
3
+ //
4
+ // React-Invenio-Forms is free software; you can redistribute it and/or modify it
5
+ // under the terms of the MIT License; see LICENSE file for more details.
6
+
7
+ export { http } from "./config" ;
Original file line number Diff line number Diff line change 7
7
8
8
export * from "./elements" ;
9
9
export * from "./forms" ;
10
+ export * from "./api" ;
You can’t perform that action at this time.
0 commit comments