1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-05 20:46:14 +01:00
fab-manager/app/assets/javascripts/services/version.js
Sylvain de9c224a92 improved version check
- use referer from client when available
- save uuid returned by hub
- send uuid to hub on version check
- check the version on each startup to prevent wrong sync
- also: do not save a setting on API update if it has not changed
2020-04-07 17:53:19 +02:00

11 lines
223 B
JavaScript

'use strict';
Application.Services.factory('Version', ['$resource', function ($resource) {
return $resource('/api/version/:origin',
{ origin: '@origin' }, {
query: {
isArray: false
}
});
}]);