diff --git a/app.rb b/app.rb index 254fe3f..f66f203 100644 --- a/app.rb +++ b/app.rb @@ -4,5 +4,15 @@ class App < Sinatra::Base erb :index end + get "/hello" do + erb :hello + end + get "/goodbye" do + erb :goodbye + end + + get "/date" do + erb :date + end end diff --git a/views/date.erb b/views/date.erb new file mode 100644 index 0000000..af24f94 --- /dev/null +++ b/views/date.erb @@ -0,0 +1 @@ +
The date is <%= Date.today.strftime("%A, %B %d, %Y") %>
diff --git a/views/goodbye.erb b/views/goodbye.erb new file mode 100644 index 0000000..49a9bfe --- /dev/null +++ b/views/goodbye.erb @@ -0,0 +1 @@ +