1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-01 23:38:37 +00:00
seahub/frontend/src/utils/seafile-api.js
lian 4e600e388e
remove unused seafile-api.js (#4491)
Co-authored-by: lian <lian@seafile.com>
2020-03-20 15:30:06 +08:00

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 };