mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-01 23:38:37 +00:00
10 lines
283 B
JavaScript
10 lines
283 B
JavaScript
import cookie from 'react-cookies';
|
|
import { SeafileAPI } from 'seafile-js';
|
|
import { siteRoot } from './constants';
|
|
|
|
let seafileAPI = new SeafileAPI();
|
|
let xcsrfHeaders = cookie.load('sfcsrftoken');
|
|
seafileAPI.initForSeahubUsage({ siteRoot, xcsrfHeaders });
|
|
|
|
export { seafileAPI };
|