-
+
{{i18n("profile.course.list")}}
-
+
-
{{item.name}}
-
{{item.teacher}}
+
{{item.title}}
+
{{item.owner.lastName}}
Credits:{{item.credits}}
@@ -200,14 +184,6 @@
-
-
- {{i18n("profile.course.list")}}
-
-
- {{item.name}}
-
-
diff --git a/frontend/src/rest/Users.js b/frontend/src/rest/Users.js
index aa7f439..1ac6fe4 100644
--- a/frontend/src/rest/Users.js
+++ b/frontend/src/rest/Users.js
@@ -1,4 +1,4 @@
-import { restGet, restPost, restPatch} from './restConsumer.js'
+import { restGet, restPost, restPatch, restDelete} from './restConsumer.js'
import { getCookie, setCookie } from '@/utils.js'
export async function login(user, pass, exp){
@@ -143,3 +143,9 @@ export async function getSelf(){
export async function alterSelf(data){
return restPatch("/user", data);
}
+
+
+
+export async function deleteUser(id){
+ return restDelete("/user/" + id)
+}
diff --git a/frontend/src/rest/curriculum.js b/frontend/src/rest/curriculum.js
index 8dde4e2..b13c2ed 100644
--- a/frontend/src/rest/curriculum.js
+++ b/frontend/src/rest/curriculum.js
@@ -43,3 +43,8 @@ export async function getcurriculum(id){
export async function altercurriculum(id, courses){
return restPatch("/curriculum/" + id, courses);
}
+
+
+export async function getSelfCurriculum(){
+ return restGet("/curriculum");
+}