class OpenAPI::Generator::RoutesProvider::Amber
Overview
Provides the list of routes declared in an Amber Framework instance.
Defined in:
openapi-generator/providers/amber.crConstructors
-
.new(included_methods : Array(String) | Nil = nil, included_paths : Array(String) | Nil = nil)
Initialize the provider with a list of allowed HTTP verbs and path prefixes to filter the routes.
Instance Method Summary
-
#route_mappings : Array(RouteMapping)
Return a list of routes mapped with the controllers and methods.
Instance methods inherited from class OpenAPI::Generator::RoutesProvider::Base
route_mappings : Array(RouteMapping)
route_mappings
Constructor Detail
def self.new(included_methods : Array(String) | Nil = nil, included_paths : Array(String) | Nil = nil)
#
Initialize the provider with a list of allowed HTTP verbs and path prefixes to filter the routes.
Instance Method Detail
def route_mappings : Array(RouteMapping)
#
Return a list of routes mapped with the controllers and methods.