From 2580247a448d40043c32fd156e049dda0f64c466 Mon Sep 17 00:00:00 2001 From: TomDijkema Date: Mon, 9 Dec 2024 10:13:01 +0100 Subject: [PATCH] Update APIMock.ts --- src/tests/mock/APIMock.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tests/mock/APIMock.ts b/src/tests/mock/APIMock.ts index 89cf0335..0d37ba01 100644 --- a/src/tests/mock/APIMock.ts +++ b/src/tests/mock/APIMock.ts @@ -15,23 +15,23 @@ import SpecimenDisciplineMock from 'tests/mock/digitalSpecimen/specimenDisciplin */ const Server = setupServer( /* Get Digital Specimen by ID */ - http.get('/digital-specimen/20.5000.1025/DW0-BNT-FM0', () => { + http.get('/digital-specimen/v1/20.5000.1025/DW0-BNT-FM0', () => { return HttpResponse.json(DigitalSpecimenMock); }), /* Get Digital Specimen's Annotations by ID */ - http.get('/digital-specimen/20.5000.1025/DW0-BNT-FM0/annotations', () => { + http.get('/digital-specimen/v1/20.5000.1025/DW0-BNT-FM0/annotations', () => { return HttpResponse.json(SpecimenAnnotationsMock); }), /* Get Digital Specimen, Digital Media */ - http.get('/digital-specimen/20.5000.1025/DW0-BNT-FM0/digital-media', () => { + http.get('/digital-specimen/v1/20.5000.1025/DW0-BNT-FM0/digital-media', () => { return HttpResponse.json(SpecimenDigitalMediaMock); }), /* Get Digital Specimen's verions by id */ - http.get('/digital-specimen/20.5000.1025/DW0-BNT-FM0/versions', () => { + http.get('/digital-specimen/v1/20.5000.1025/DW0-BNT-FM0/versions', () => { return HttpResponse.json(SpecimenVersionsMock); }), /* Get Topic Disciplines numbers */ - http.get('/digital-specimen/discipline', () => { + http.get('/digital-specimen/v1/discipline', () => { return HttpResponse.json(SpecimenDisciplineMock); }) );