class OpenAPI::Generator::RoutesProvider::Amber

Overview

Provides the list of routes declared in an Amber Framework instance.

Defined in:

openapi-generator/providers/amber.cr

Constructors

Instance Method Summary

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, included_paths : Array(String)? = 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.