Sha256: b9cfa19214e59a9eff072030dc0ba7ebcf937d0744e01789816838dbaf365e49

Contents?: true

Size: 429 Bytes

Versions: 15

Compression:

Stored size: 429 Bytes

Contents

module Jets::Cfn::Builder::Api::Pages
  class Methods < Base
    class << self
      # interface method
      def uids
        if Jets.config.cfn.build.routes == "one_apigw_method_for_all_routes"
          return ['ANY|/', 'ANY|/*catchall']
        end

        routes = Jets::Router.routes
        routes.map do |route|
          "#{route.http_method}|#{route.path}"  # IE: GET|posts/:id
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.12 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.11 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.10 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.9 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.8 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.7 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.6 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.5 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.4 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.3 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.2 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.1 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.0 lib/jets/cfn/builder/api/pages/methods.rb
jets-5.0.0.beta1 lib/jets/cfn/builder/api/pages/methods.rb