Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74ca40c

Browse files
committed
first commit
0 parents  commit 74ca40c

File tree

6 files changed

+46
-0
lines changed

6 files changed

+46
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'thin'
4+
gem 'sinatra'

Gemfile.lock

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
daemons (1.1.9)
5+
eventmachine (1.0.1)
6+
rack (1.5.2)
7+
rack-protection (1.3.2)
8+
rack
9+
sinatra (1.3.5)
10+
rack (~> 1.4)
11+
rack-protection (~> 1.3)
12+
tilt (~> 1.3, >= 1.3.3)
13+
thin (1.5.0)
14+
daemons (>= 1.0.9)
15+
eventmachine (>= 0.12.6)
16+
rack (>= 1.0.0)
17+
tilt (1.3.4)
18+
19+
PLATFORMS
20+
ruby
21+
22+
DEPENDENCIES
23+
sinatra
24+
thin

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: bundle exec thin start -p $PORT

app.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'sinatra'
2+
3+
get '/get' do
4+
'OK'
5+
end
6+
7+
post '/post' do
8+
if request.body == "POSTDATA"
9+
'OK'
10+
else
11+
'FAIL'
12+
end
13+
end

config.ru

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require './app'
2+
3+
run App

0 commit comments

Comments
 (0)