Skip to content

BuildYourOwnSinatra/a-simple-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Router

A very simple example ruby router you should never actually use. Just for learning purposes. Built for the book BuildYourOwnSinatra

Installation

Add to your Gemfile:

gem 'a-simple-route', github: 'BuildYourOwnSinatra/a-simple-router'

Usage

Place the following in a rackup file

require 'a-simple-router'
run ASimpleRouter.new do
  get '/cats', {200, {}, ["Cats!"]}
end

Releases

No releases published

Packages

No packages published

Languages