From 20796afb6cc7f0045e4530abdf511ccd7bcce664 Mon Sep 17 00:00:00 2001 From: Sam Leeflang Date: Wed, 4 Dec 2024 16:36:07 +0100 Subject: [PATCH] Change endpoint so prod can handle it --- .../java/eu/dissco/backend/controller/AnnotationController.java | 2 +- .../eu/dissco/backend/controller/DigitalMediaController.java | 2 +- .../eu/dissco/backend/controller/DigitalSpecimenController.java | 2 +- .../eu/dissco/backend/controller/MasJobRecordController.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/eu/dissco/backend/controller/AnnotationController.java b/src/main/java/eu/dissco/backend/controller/AnnotationController.java index 9c7671b..3d1be98 100644 --- a/src/main/java/eu/dissco/backend/controller/AnnotationController.java +++ b/src/main/java/eu/dissco/backend/controller/AnnotationController.java @@ -54,7 +54,7 @@ @Slf4j @RestControllerAdvice @RestController -@RequestMapping("/api/v1/annotation") +@RequestMapping("/v1/annotation") public class AnnotationController extends BaseController { private final AnnotationService service; diff --git a/src/main/java/eu/dissco/backend/controller/DigitalMediaController.java b/src/main/java/eu/dissco/backend/controller/DigitalMediaController.java index 9e8d10d..7c38493 100644 --- a/src/main/java/eu/dissco/backend/controller/DigitalMediaController.java +++ b/src/main/java/eu/dissco/backend/controller/DigitalMediaController.java @@ -45,7 +45,7 @@ @Slf4j @RestControllerAdvice @RestController -@RequestMapping("api/v1/digital-media") +@RequestMapping("/v1/digital-media") public class DigitalMediaController extends BaseController { private final DigitalMediaService service; diff --git a/src/main/java/eu/dissco/backend/controller/DigitalSpecimenController.java b/src/main/java/eu/dissco/backend/controller/DigitalSpecimenController.java index e615f08..d3ff526 100644 --- a/src/main/java/eu/dissco/backend/controller/DigitalSpecimenController.java +++ b/src/main/java/eu/dissco/backend/controller/DigitalSpecimenController.java @@ -50,7 +50,7 @@ @Slf4j @RestControllerAdvice @RestController -@RequestMapping("/api/v1/digital-specimen") +@RequestMapping("/v1/digital-specimen") public class DigitalSpecimenController extends BaseController { private final DigitalSpecimenService service; diff --git a/src/main/java/eu/dissco/backend/controller/MasJobRecordController.java b/src/main/java/eu/dissco/backend/controller/MasJobRecordController.java index 9e8aa6c..3f7c0d8 100644 --- a/src/main/java/eu/dissco/backend/controller/MasJobRecordController.java +++ b/src/main/java/eu/dissco/backend/controller/MasJobRecordController.java @@ -31,7 +31,7 @@ @Slf4j @RestControllerAdvice @RestController -@RequestMapping("/api/v1/mjr") +@RequestMapping("/v1/mjr") public class MasJobRecordController extends BaseController { private final MasJobRecordService service;