tycho-components 0.8.23 → 0.8.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import CookieStorage from '../../configs/CookieStorage';
|
|
1
2
|
import api from '../../configs/api';
|
|
2
3
|
function available() {
|
|
3
|
-
|
|
4
|
+
const url = CookieStorage.getJwtToken()
|
|
5
|
+
? `${import.meta.env.VITE_APP_AUTH_API}/corpus/list/me`
|
|
6
|
+
: `${import.meta.env.VITE_APP_AUTH_API}/corpus/open/public/list`;
|
|
7
|
+
return api.get(url);
|
|
4
8
|
}
|
|
5
9
|
const CorpusService = {
|
|
6
10
|
available,
|