1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-21 15:54:22 +01:00

move version API to POST

This commit is contained in:
Sylvain 2020-04-14 11:39:26 +02:00
parent b3c823c0d4
commit ac1fa424b5
2 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@
Application.Services.factory('Version', ['$resource', function ($resource) { Application.Services.factory('Version', ['$resource', function ($resource) {
return $resource('/api/version/:origin', return $resource('/api/version/:origin',
{ origin: '@origin' }, { {}, {
query: { get: {
isArray: false method: 'POST'
} }
}); });
}]); }]);

View File

@ -159,7 +159,7 @@ Rails.application.routes.draw do
end end
# Fab-manager's version # Fab-manager's version
get 'version/:origin' => 'version#show' post 'version' => 'version#show'
# payments handling # payments handling
post 'payments/confirm_payment' => 'payments/confirm_payment' post 'payments/confirm_payment' => 'payments/confirm_payment'