@@ -16,7 +16,7 @@ export default webpackMockServer.add((app, helper) => {
16
16
const modelIds = new Map < string , { model_id : string ; last_update : Date } > ( ) ;
17
17
18
18
//API KEY RELATED ENDPOINTS
19
- app . get ( "/api/v0 /wca/apikey/" , async ( _req , res ) => {
19
+ app . get ( "/api/v1 /wca/apikey/" , async ( _req , res ) => {
20
20
await delay ( DELAY_MS ) ;
21
21
if ( keys . has ( ORG_ID ) ) {
22
22
// Key response only contains the Last Updated field
@@ -27,7 +27,7 @@ export default webpackMockServer.add((app, helper) => {
27
27
}
28
28
} ) ;
29
29
30
- app . get ( "/api/v0 /wca/apikey/test/" , async ( _req , res ) => {
30
+ app . get ( "/api/v1 /wca/apikey/test/" , async ( _req , res ) => {
31
31
await delay ( DELAY_MS ) ;
32
32
if ( ! keys . has ( ORG_ID ) ) {
33
33
res . sendStatus ( 404 ) ;
@@ -49,7 +49,7 @@ export default webpackMockServer.add((app, helper) => {
49
49
res . sendStatus ( 200 ) ;
50
50
} ) ;
51
51
52
- app . post ( "/api/v0 /wca/apikey/" , async ( _req , res ) => {
52
+ app . post ( "/api/v1 /wca/apikey/" , async ( _req , res ) => {
53
53
await delay ( DELAY_MS ) ;
54
54
const key = _req . body [ "key" ] ;
55
55
if ( key === "error" ) {
@@ -67,7 +67,7 @@ export default webpackMockServer.add((app, helper) => {
67
67
res . sendStatus ( 200 ) ;
68
68
} ) ;
69
69
70
- app . delete ( "/api/v0 /wca/apikey/" , async ( _req , res ) => {
70
+ app . delete ( "/api/v1 /wca/apikey/" , async ( _req , res ) => {
71
71
await delay ( DELAY_MS ) ;
72
72
if ( keys . has ( ORG_ID ) ) {
73
73
keys . delete ( ORG_ID ) ;
@@ -81,7 +81,7 @@ export default webpackMockServer.add((app, helper) => {
81
81
} ) ;
82
82
83
83
//MODEL ID RELATED ENDPOINTS
84
- app . get ( "/api/v0 /wca/modelid/" , async ( _req , res ) => {
84
+ app . get ( "/api/v1 /wca/modelid/" , async ( _req , res ) => {
85
85
await delay ( DELAY_MS ) ;
86
86
if ( modelIds . has ( ORG_ID ) ) {
87
87
res . json ( modelIds . get ( ORG_ID ) ) ;
@@ -90,7 +90,7 @@ export default webpackMockServer.add((app, helper) => {
90
90
}
91
91
} ) ;
92
92
93
- app . get ( "/api/v0 /wca/modelid/test/" , async ( _req , res ) => {
93
+ app . get ( "/api/v1 /wca/modelid/test/" , async ( _req , res ) => {
94
94
await delay ( DELAY_MS ) ;
95
95
if ( ! modelIds . has ( ORG_ID ) ) {
96
96
res . sendStatus ( 404 ) ;
@@ -112,7 +112,7 @@ export default webpackMockServer.add((app, helper) => {
112
112
res . sendStatus ( 200 ) ;
113
113
} ) ;
114
114
115
- app . post ( "/api/v0 /wca/modelid/" , async ( _req , res ) => {
115
+ app . post ( "/api/v1 /wca/modelid/" , async ( _req , res ) => {
116
116
await delay ( DELAY_MS ) ;
117
117
const modelId = _req . body [ MODEL_ID_FIELD ] ;
118
118
if ( modelId === "error" ) {
0 commit comments