Sha256: 68f26d10064bf61d0f7c16cb65ed7748a2cb192156fff27d83170a6461785a20

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

module API
  module V1
    module <%= name.camelize.pluralize %>
      class Routes < Grape::API
        # Format response
        <%= GrapeResource.success_formatter %>
        <%= GrapeResource.error_formatter %>

        mount <%= GrapeResource.class_name_prefix %>::<%= name.camelize.pluralize %>::Resources::<%= @name_of_class %>
        <%= GrapeResource.entry_point_routes %> -- DONT REMOVE THIS LINE
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grape_resource-0.1.11 lib/generators/templates/routes.rb.erb
grape_resource-0.1.10 lib/generators/templates/routes.rb.erb
grape_resource-0.1.6 lib/generators/templates/routes.rb.erb
grape_resource-0.1.5 lib/generators/templates/routes.rb.erb