initial framework for the shortener routes
parent
c6fa7eafe3
commit
81b22d0c4a
|
|
@ -0,0 +1,19 @@
|
|||
require 'roda'
|
||||
require 'securerandom'
|
||||
require 'json'
|
||||
|
||||
class App < Roda
|
||||
route do |r|
|
||||
r.root do
|
||||
"this is the root"
|
||||
end
|
||||
|
||||
r.get String do | url_code |
|
||||
"redirect to url"
|
||||
end
|
||||
|
||||
r.post "create" do
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue