initial framework for the shortener routes

pull/13/head
Adam Townsend 2023-09-13 13:29:45 -07:00
parent c6fa7eafe3
commit 81b22d0c4a
2 changed files with 22 additions and 0 deletions

19
app.rb 100644
View File

@ -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

3
config.ru 100644
View File

@ -0,0 +1,3 @@
require './app'
run App.app