mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
vue accompanyingcourse: ending referrer subcomponent
This commit is contained in:
@@ -166,7 +166,16 @@ const postSocialIssue = (id, body, method) => {
|
||||
};
|
||||
|
||||
const getUsers = () => {
|
||||
const url = `/api/1.0/...json`;
|
||||
const url = `/api/1.0/main/user.json`;
|
||||
return fetch(url)
|
||||
.then(response => {
|
||||
if (response.ok) { return response.json(); }
|
||||
throw Error('Error with request resource response');
|
||||
});
|
||||
};
|
||||
|
||||
const whoami = () => {
|
||||
const url = `/api/1.0/main/whoami.json`;
|
||||
return fetch(url)
|
||||
.then(response => {
|
||||
if (response.ok) { return response.json(); }
|
||||
@@ -201,6 +210,7 @@ export {
|
||||
postRequestor,
|
||||
postResource,
|
||||
getUsers,
|
||||
whoami,
|
||||
getListOrigins,
|
||||
getOrigin,
|
||||
postSocialIssue
|
||||
|
Reference in New Issue
Block a user