diff options
author | cyuamber <xuranyjy@chinamobile.com> | 2020-02-06 21:37:44 +0800 |
---|---|---|
committer | cyuamber <xuranyjy@chinamobile.com> | 2020-02-06 21:37:54 +0800 |
commit | 2d44bd74a9f3f621532542775ba42c3149e54101 (patch) | |
tree | 7f0bb6120303c969c08ad735749e890616231de7 /usecaseui-portal/src/app/mock/server.js | |
parent | 67e32a3411851851185bdc22320687c317ea35bf (diff) |
feat: add Activate & Terminate & progress of CSMF Slicing page
Change-Id: I2f0db61addd34cd90978b5f9e41793b1d1b4f63e
Issue-ID: USECASEUI-368
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/mock/server.js')
-rw-r--r-- | usecaseui-portal/src/app/mock/server.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/mock/server.js b/usecaseui-portal/src/app/mock/server.js index 3c49777d..6dc00815 100644 --- a/usecaseui-portal/src/app/mock/server.js +++ b/usecaseui-portal/src/app/mock/server.js @@ -119,6 +119,21 @@ server.delete(`${nsmfBaseUrl}/*`, (req, res, next) => { req.url = '/DELETE'+req.url; next(); }) +server.put(`${csmfBaseUrl}/*`, (req, res, next) => { + req.method = 'GET'; + req.url = '/PUT'+req.url; + next(); +}) +server.post(`${csmfBaseUrl}/*`, (req, res, next) => { + req.method = 'GET'; + req.url = '/POST'+req.url; + next(); +}) +server.delete(`${csmfBaseUrl}/*`, (req, res, next) => { + req.method = 'GET'; + req.url = '/DELETE'+req.url; + next(); +}) server.listen(3002, () => { console.log('Mock Server is successfully running on port 3002 😁') |