diff --git a/IoTSharp/ClientApp/src/api/device.js b/IoTSharp/ClientApp/src/api/device.js index 7df67163c986f6ae98e475eb1eb8298289a7052f..aeddc4e10d55d533b2ec42f1580b326c1d62adb2 100755 --- a/IoTSharp/ClientApp/src/api/device.js +++ b/IoTSharp/ClientApp/src/api/device.js @@ -16,6 +16,14 @@ export function getDevice(id) { }) } +// Get a device's credentials +export function GetIdentity(id) { + return request({ + url: '/Devices/' + id, + method: 'get' + }) +} + // Create a new device export function creatDevice(data) { return request({ diff --git a/IoTSharp/ClientApp/src/components/GithubCorner/index.vue b/IoTSharp/ClientApp/src/components/GithubCorner/index.vue index 970faaf179cd53ccd52c2996827c06be42748772..b88618e4745d2c4320a8135290883f80eed5d0fe 100755 --- a/IoTSharp/ClientApp/src/components/GithubCorner/index.vue +++ b/IoTSharp/ClientApp/src/components/GithubCorner/index.vue @@ -1,5 +1,5 @@