class Amatista::Route

Overview

Use by the framework to handle the request params.

Defined in:

amatista/route.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(controller, method, path, block) #

[View source]

Instance Method Detail

def add_params(params : Handler::Params) #

Add personalized params to the coming from requests


[View source]
def block #

def block=(block) #

def controller #

def controller=(controller) #

def get_params #

Get personalized params from routes defined by user


[View source]
def match_path?(path) #

Search for similar paths Example: /tasks/edit/:id == /tasks/edit/2


[View source]
def method #

def method=(method) #

def path #

def path=(path) #

def request_path #

def request_path=(request_path) #