class Azu::Router::Builder

Overview

The Router::Builder class allows you to build routes more easily

routes :web, "/test" do
  get "/hello/", ExampleApp::HelloWorld
  get "/hello/:name", ExampleApp::HtmlEndpoint
  get "/hello/json", ExampleApp::JsonEndpoint
end

Defined in:

azu/router.cr

Constructors

Macro Summary

Constructor Detail

def self.new(router : Router, scope : String = "") #

[View source]

Macro Detail

macro method_missing(call) #

[View source]