preparándonos para la nueva api

This commit is contained in:
f 2021-10-19 16:04:17 -03:00
parent ab3922233f
commit f81841f182
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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