Skip to content

Commit 38b4704

Browse files
committed
mdnsbridge-local: align nmos api version with UI: v1.2
1 parent 4140f7b commit 38b4704

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/mdnsbridge-local.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ app.all('*', function (req, res, next) {
2929

3030
app.use(bodyParser.json())
3131

32-
app.get('/x-nmos/node/v1.0/self', function (req, res) {
32+
app.get('/x-nmos/node/v1.2/self', function (req, res) {
3333
res.json({
3434
'version': '1481114285:857636340',
3535
'hostname': 'ipstudio-master',
3636
'caps': {},
3737
'href': 'http://localhost:12345/',
3838
'services': [
3939
{
40-
'href': 'http://localhost:12345/x-nmos/node/v1.0/self/status/',
40+
'href': 'http://localhost:12345/x-nmos/node/v1.2/self/status/',
4141
'type': 'urn:x-ipstudio:service:status'
4242
},
4343
{
44-
'href': 'http://localhost:12345/x-nmos/node/v1.0/self/mdnsbridge/',
44+
'href': 'http://localhost:12345/x-nmos/node/v1.2/self/mdnsbridge/',
4545
'type': 'urn:x-ipstudio:service:mdnsbridge'
4646
}
4747
],
@@ -50,7 +50,7 @@ app.get('/x-nmos/node/v1.0/self', function (req, res) {
5050
})
5151
})
5252

53-
app.get('/x-nmos/node/v1.0/self/mdnsbridge/nmos-query', function (req, res) {
53+
app.get('/x-nmos/node/v1.2/self/mdnsbridge/nmos-query', function (req, res) {
5454
res.json({
5555
'representation': [
5656
{
@@ -80,7 +80,7 @@ app.get('/x-nmos/node/v1.0/self/mdnsbridge/nmos-query', function (req, res) {
8080
})
8181

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

8686
app.listen(12345, () => {

0 commit comments

Comments
 (0)