Skip to content

Instantly share code, notes, and snippets.

View bernardo-amorim's full-sized avatar

Bernardo Amorim bernardo-amorim

View GitHub Profile
require 'sinatra/base'
class ApplicationController < Sinatra::Base
def self.inherited sublass
super
Router.use(sublass)
end
def self.validated_get(route, &block)
get(route) do
block.call