Skip to content

Commit

Permalink
mdnsbridge-local: align nmos api version with UI: v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pkeroulas committed Mar 15, 2022
1 parent 4140f7b commit 38b4704
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/mdnsbridge-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ app.all('*', function (req, res, next) {

app.use(bodyParser.json())

app.get('/x-nmos/node/v1.0/self', function (req, res) {
app.get('/x-nmos/node/v1.2/self', function (req, res) {
res.json({
'version': '1481114285:857636340',
'hostname': 'ipstudio-master',
'caps': {},
'href': 'http://localhost:12345/',
'services': [
{
'href': 'http://localhost:12345/x-nmos/node/v1.0/self/status/',
'href': 'http://localhost:12345/x-nmos/node/v1.2/self/status/',
'type': 'urn:x-ipstudio:service:status'
},
{
'href': 'http://localhost:12345/x-nmos/node/v1.0/self/mdnsbridge/',
'href': 'http://localhost:12345/x-nmos/node/v1.2/self/mdnsbridge/',
'type': 'urn:x-ipstudio:service:mdnsbridge'
}
],
Expand All @@ -50,7 +50,7 @@ app.get('/x-nmos/node/v1.0/self', function (req, res) {
})
})

app.get('/x-nmos/node/v1.0/self/mdnsbridge/nmos-query', function (req, res) {
app.get('/x-nmos/node/v1.2/self/mdnsbridge/nmos-query', function (req, res) {
res.json({
'representation': [
{
Expand Down Expand Up @@ -80,7 +80,7 @@ app.get('/x-nmos/node/v1.0/self/mdnsbridge/nmos-query', function (req, res) {
})

app.get('/', function (req, res) {
res.send('You did this wrong, go to x-nmos/node/v1.0/self')
res.send('You did this wrong, go to x-nmos/node/v1.2/self')
})

app.listen(12345, () => {
Expand Down

0 comments on commit 38b4704

Please sign in to comment.