preparándonos para la nueva api
This commit is contained in:
parent
ab3922233f
commit
f81841f182
2 changed files with 9 additions and 0 deletions
|
@ -7,4 +7,11 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
def index
|
def index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Por ahora hacer un echo de cada transacción
|
||||||
|
#
|
||||||
|
# @see {https://docutopia.tupale.co/sutty:nodemecu:api}
|
||||||
|
def transactions
|
||||||
|
render plain: params[:transaction_uuid], status: :ok
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,4 +5,6 @@ Rails.application.routes.draw do
|
||||||
resources :measurements, only: [:create]
|
resources :measurements, only: [:create]
|
||||||
end
|
end
|
||||||
mount Blazer::Engine, at: 'blazer'
|
mount Blazer::Engine, at: 'blazer'
|
||||||
|
|
||||||
|
post :transactions, to: 'application#transactions'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue