From e8917cd69edae2d92d0f3e6176513fc3996e3e7c Mon Sep 17 00:00:00 2001 From: LeoMoulin Date: Sat, 20 Apr 2024 13:17:32 +0200 Subject: [PATCH] Small changes --- .../Clyde/EndPoints/Inscription/RequestsController.java | 6 ++++++ frontend/src/Apps/Inscription/AboutRequest.vue | 1 - frontend/src/Apps/Inscription/CourseList.vue | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/ovh/herisson/Clyde/EndPoints/Inscription/RequestsController.java b/backend/src/main/java/ovh/herisson/Clyde/EndPoints/Inscription/RequestsController.java index 74d1bf0..a9edbda 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/EndPoints/Inscription/RequestsController.java +++ b/backend/src/main/java/ovh/herisson/Clyde/EndPoints/Inscription/RequestsController.java @@ -309,4 +309,10 @@ public class RequestsController { UserCurriculum userCurriculum = new UserCurriculum(u, toEdit.getDestinationCurriculum(), c.get(Calendar.YEAR), true); userCurriculumRepository.save(userCurriculum); } + + @GetMapping("/exemptionreq/{userId}") + public ResponseEntity> getExReqByuser(@PathVariable long userId){ + User u = userRepository.findById(userId); + return new ResponseEntity<>(HttpStatus.OK); + } } diff --git a/frontend/src/Apps/Inscription/AboutRequest.vue b/frontend/src/Apps/Inscription/AboutRequest.vue index 767e310..77565ed 100644 --- a/frontend/src/Apps/Inscription/AboutRequest.vue +++ b/frontend/src/Apps/Inscription/AboutRequest.vue @@ -8,7 +8,6 @@ import {getExternalCurriculumByInscrReq} from "@/rest/externalCurriculum.js"; import {ref} from "vue"; import ExternalCurriculumList from "@/Apps/Inscription/ExternalCurriculumList.vue"; import {editEquivalenceState} from "@/rest/requests.js"; -import {downloadPdf} from "@/rest/uploads.js"; const props = defineProps(['target']); const request = await getRegisters(props.target); diff --git a/frontend/src/Apps/Inscription/CourseList.vue b/frontend/src/Apps/Inscription/CourseList.vue index 7442076..998edd3 100644 --- a/frontend/src/Apps/Inscription/CourseList.vue +++ b/frontend/src/Apps/Inscription/CourseList.vue @@ -30,6 +30,10 @@ const exemptReq = reactive({ courseId : null, justifDocument : "", }) + +async function getExemptions(){ + +}