Skip to content

Commit

Permalink
Removed methods from public API
Browse files Browse the repository at this point in the history
  • Loading branch information
psanders committed Oct 2, 2019
1 parent beffcbf commit bff0865
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
export JAVA_HOME=$GRAALVM_HOME
npm i
npm test
./cc-test-reporter after-build
# this must be fixed to send test coverage to codeclimate
# ./cc-test-reporter after-build --exit-code
- name: Package
run: |
export ROUTR_VERSION=$(cut -d'/' -f3 <<<"${{ github.ref }}")
Expand Down
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ nav:
- Overview: api/overview.md
- Credentials: api/token.md
- Location:
- create: api/location/create.md
- delete: api/location/delete.md
#- create: api/location/create.md
#- delete: api/location/delete.md
- list: api/location/list.md
- Registry: api/registry.md
- Agents:
Expand Down
8 changes: 4 additions & 4 deletions mod/rest/location_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function(nht) {
/**
* Expects json with: address, port, user, expires
*/
post('/location/:aor', (req, res) => {
/*post('/location/:aor', (req, res) => {
const aor = req.params(':aor')
try {
Expand Down Expand Up @@ -80,7 +80,7 @@ module.exports = function(nht) {
res.body('{\"status\": \"400\", \"message\":\"Bad Request\"}')
return '{\"status\": \"400\", \"message\":\"Bad Request\"}'
}
})
})*/

get('/location', (req, res) => JSON.stringify(
CoreUtils.buildResponse(Status.OK,
Expand All @@ -90,7 +90,7 @@ module.exports = function(nht) {
.map(entries => routeFromString(entries))
)))

del('/location/:aor', (req, res) => {
/*del('/location/:aor', (req, res) => {
const aor = req.params(':aor')
postal.publish({
Expand All @@ -112,5 +112,5 @@ module.exports = function(nht) {
res.status(200)
res.body('{\"status\": \"200\", \"message\":\"Evicted All!\"}')
return '{\"status\": \"200\", \"message\":\"Evicted All!\"}'
})
})*/
}

0 comments on commit bff0865

Please sign in to comment.