railsのAPIモードについて質問

app/api/api.rb

class API <Grape::API

mount Tests::V1:Root
end

にして

app/api
  /tests/v1/root.rb

module tests
module v1
class Root < Grape::API
 
 get do
  puts "test1"

  end
 end
end
end