Method: Midori::API.notify

Defined in:
lib/midori/api.rb

.notify(path) { ... } ⇒ nil

Add NOTIFY method as a DSL for route definition

Examples:

String as router

notify '/' do
   puts 'Hello World'
end

Parameters:

  • path (String)

    Accepts as part of path in route definition

Yields:

  • what to run when route matched

Returns:

  • (nil)

    nil



232
# File 'lib/midori/api.rb', line 232

def notify(path, &block) end