initial framework for the shortener routes
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user