diff options
Diffstat (limited to 'usecaseui-portal')
-rw-r--r-- | usecaseui-portal/src/app/mock/server.js | 13 |
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 😁') |