summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/mock/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/mock/server.js')
-rw-r--r--usecaseui-portal/src/app/mock/server.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/mock/server.js b/usecaseui-portal/src/app/mock/server.js
index b603523f..eef7df16 100644
--- a/usecaseui-portal/src/app/mock/server.js
+++ b/usecaseui-portal/src/app/mock/server.js
@@ -101,7 +101,9 @@ server.put(`${baseUrl}/*`, (req, res, next) => {
next();
})
server.delete(`${baseUrl}/*`, (req, res, next) => {
- console.log("===delete😑")
+ const prefix = req.url.replace(baseUrl, "");
+ req.url = `${baseUrl}/DELETE${prefix}`;
+ req.method = 'GET';
next();
})