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
|
||||
def index
|
||||
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
|
||||
|
|
|
@ -5,4 +5,6 @@ Rails.application.routes.draw do
|
|||
resources :measurements, only: [:create]
|
||||
end
|
||||
mount Blazer::Engine, at: 'blazer'
|
||||
|
||||
post :transactions, to: 'application#transactions'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue