Method: ATD::Route#get

Defined in:
lib/atd.rb

#get(path = nil, *args) ⇒ Object

Sets route to receive a get request to path and execute the block provided (if one is provided)

Parameters:

  • path (String) (defaults to: nil)

    The path at which the route should receive from.

Returns:

  • ATD::Route



# File 'lib/atd.rb', line 52