Class: Jets::Cfn::Builder::Api::Pages::Resources

Inherits:
Base
  • Object
show all
Defined in:
lib/jets/cfn/builder/api/pages/resources.rb

Class Method Summary collapse

Methods inherited from Base

build_uids_map, find_page_index, page_limit, pages, previously_deployed

Class Method Details

.uidsObject

interface method



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/jets/cfn/builder/api/pages/resources.rb', line 5

def uids
  if Jets.config.cfn.build.routes == "one_apigw_method_for_all_routes"
    return ['/', '/*catchall']
  end

  # Note: Do not use
  #     Jets::Router.routes.map(&:path)
  # It does not include all the top of the leaves.  Example:
  #   admin is not included
  #   admin/new is included
  # Also, do not include the root/homepage path. It's already created
  # in api-gateway.yml
  Jets::Router.all_paths.reject { |p| p.blank? }
end