Sha256: 05ebe0a382f08033e351df4f587d801c34125bf18aa12be5d1bbe37220ee1799

Contents?: true

Size: 226 Bytes

Versions: 25

Compression:

Stored size: 226 Bytes

Contents

# Rename this file to hello.rb to try it out

class Routes::Hello < Bridgetown::Rack::Routes
  route do |r|
    # route: GET /hello/:name
    r.get "hello", String do |name|
      { hello: "friend #{name}" }
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
bridgetown-core-1.1.0.beta1 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.beta3 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.beta2 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.beta1 lib/site_template/server/routes/hello.rb.sample