Sha256: d1c128f01c647e4a50ac9bcfb36d2568caabab8b86661ddb79c9d8817d1e4322

Contents?: true

Size: 223 Bytes

Versions: 11

Compression:

Stored size: 223 Bytes

Contents

# Rename this file to hello.rb to try 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

11 entries across 11 versions & 1 rubygems

Version Path
bridgetown-core-1.0.0.alpha11 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha10 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha9 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha8 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha7 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha6 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha5 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha4 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha3 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha2 lib/site_template/server/routes/hello.rb.sample
bridgetown-core-1.0.0.alpha1 lib/site_template/server/routes/hello.rb.sample