diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/api.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/api.js
index 2634a20cb..ada63846e 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/api.js
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/api.js
@@ -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
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Referrer.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Referrer.vue
index 6229dda01..c566d2281 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Referrer.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Referrer.vue
@@ -1,42 +1,43 @@
-
-
{{ $t('referrer.title') }}
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
+
+
{{ $t('referrer.title') }}
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+