AzuCLI::Generate::Middleware
Inherits Teeplate::FileTree < Reference < Object
Middleware generator that creates HTTP::Handler classes
Constants
OUTPUT_DIR = "./src/middleware"
Constructors
new(name : String, middleware_type : String = "authentication", skip_paths : Array(String) = [] of String, context_vars : Hash(String, String) = {} of String => String)
SourceInstance methods
__ecr0(____io)
Sourcecontext_vars
Sourcecontext_vars=(context_vars : Hash(String, String))
Sourcemiddleware_type
Sourcemiddleware_type=(middleware_type : String)
Sourcename
Sourcename=(name : String)
Sourceskip_paths
Sourceskip_paths=(skip_paths : Array(String))
Sourcesnake_case_name
Sourcesnake_case_name=(snake_case_name : String)
Source