Code Review
/
ric-plt
/
rtmgr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
API to manipulate subscriber xApp list
[ric-plt/rtmgr.git]
/
test
/
docker
/
xmgr.build
/
middleware.js
1
module.exports = function (req, res, next) {
2
if (req.method === 'POST') {
3
// Converts POST to GET and move payload to query params
4
// This way it will make JSON Server that it's GET request
5
req.method = 'GET'
6
req.query = req.body
7
}
8
// Continue to JSON Server router
9
next()
10
}