aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2019-12-05 02:29:52 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-05 02:29:52 +0000
commit2272314ce11daf597d5113fbe3e16243ac4430d9 (patch)
tree864b7e3003e90e5328553ec3536fc8d1d8a0163a /usecaseui-portal/src
parente53295bc15043f9d343897f3c8a4b6848cdf0c44 (diff)
parentb3762dcda5557f4db06718423fbb041dbd5c24b6 (diff)
Merge "feat: Convert put, delete, and post requests to get requests"
Diffstat (limited to 'usecaseui-portal/src')
-rw-r--r--usecaseui-portal/src/app/mock/server.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/mock/server.js b/usecaseui-portal/src/app/mock/server.js
index 010f480d..f8e6b194 100644
--- a/usecaseui-portal/src/app/mock/server.js
+++ b/usecaseui-portal/src/app/mock/server.js
@@ -19,6 +19,7 @@ const server = jsonServer.create();
const middlewares = jsonServer.defaults();
const customersRouters = require('./routes');
const baseUrl = "/usecaseui-server/v1";
+const nsmfBaseUrl = "/uui-slicing/nsmf";
// Set default middlewares (logger, static, cors and no-cache)
server.use(middlewares);
@@ -102,6 +103,18 @@ server.delete(`${baseUrl}/*`, (req, res, next) => {
req.method = 'GET';
next();
})
+server.put(`${nsmfBaseUrl}/*`, (req, res, next) => {
+ req.method = 'GET';
+ next();
+})
+server.post(`${nsmfBaseUrl}/*`, (req, res, next) => {
+ req.method = 'GET';
+ next();
+})
+server.delete(`${nsmfBaseUrl}/*`, (req, res, next) => {
+ req.method = 'GET';
+ next();
+})
server.listen(3002, () => {
console.log('Mock Server is successfully running on port 3002 😁')