Sha256: 1a30028edd10ff1daef28b547042389b4064d04a405757790afa027adbdd010f
Contents?: true
Size: 292 Bytes
Versions: 7
Compression:
Stored size: 292 Bytes
Contents
require 'kontrol' class Routing < Kontrol::Application map do pages '/pages/(.*)' do |name| text "The path is #{ pages_path name }! " end archive '/(\d*)/(\d*)' do |year, month| text "The path is #{ archive_path year, month }! " end end end run Routing.new
Version data entries
7 entries across 7 versions & 2 rubygems