Skip to content

Commit

Permalink
feat: add market data controller
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Nov 28, 2019
1 parent 1be98f9 commit 5b81ad3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/controllers/api/v1/market_data_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Api
module V1
class MarketDataController < ApplicationController
def show

end
end
end
end
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
resources :dao_contract_transactions, only: :show
resources :address_dao_transactions, only: :show
resources :dao_depositors, only: :index
resources :market_data, only: :show
end
end

Expand Down
7 changes: 7 additions & 0 deletions test/controllers/api/v1/market_data_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class Api::V1::MarketDataControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

0 comments on commit 5b81ad3

Please sign in to comment.