Skip to content

Commit

Permalink
Update APIMock.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDijkema committed Dec 9, 2024
1 parent a78471d commit 2580247
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/mock/APIMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
);
Expand Down

0 comments on commit 2580247

Please sign in to comment.